Den 2011-08-30 20:18 skrev David Laight:
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.
Nope, you are mistaken and the OP is correct.
%e float %le double %Le long double
Cheers, Peter