On Mon, Aug 29, 2011 at 06:43:41PM -0700, Alan W. Irwin wrote: > double x; > while(fscanf(stdin, " %le ", &x) == 1) You are using the wrong format, %le is for 'long double', this will probably overwrite too much data. David -- David Laight: david at l8s.co.uk