Using SCANF with DOUBLE precision variables...

apn apn at nonvon.UUCP
Tue Sep 23 06:52:06 AEST 1986

In article <3672 at brl-smoke.ARPA>, DAVE%UWF.BITNET at WISCVM.WISC.EDU writes:
> I have been wanting to read in some real numbers, preferably thru SCANF, but I
> get nothing but 0.000 returned when i try to put the result of a SCANF in a var
> declared as DOUBLE.  The only thing that I could think of was either writing my
> own algorithm, or reading the number in as FLOAT and storing it in the DOUBLE

	What about using atof to read in the float ?

More information about the Comp.lang.c mailing list