Problem with Turbo C and floating point

Karl Heuer karl at haddock.ima.isc.com
Thu Aug 18 08:49:02 AEST 1988


In article <477 at accelerator.eng.ohio-state.edu> rob at kaa.eng.ohio-state.edu (Rob Carriere) writes:
>ANSI seems to have decided, in its' infinite wisdom, that reading floats
>(as opposed to doubles) is a no-no.

Wrong.  ANSI scanf accepts %f (float), %lf (double), and %Lf (long double).
This is compatible with pre-ANSI usage, of course.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list