Using SCANF with DOUBLE precision variables...

N.C. Hauth [Courtney] phnch at phuxc.UUCP
Tue Sep 16 10:15:14 AEST 1986


Yes, there is a solution to your problem.  You have to use the scanf
with a long float. For example:


  sscanf(line,"%*1d %1d %6lf\n",&division_1,&dc1);

Happy Hunting.
Courtney



More information about the Comp.lang.c mailing list