Implicit decimal points in floating-point reads

Doug Gwyn gwyn at smoke.brl.mil
Wed May 22 11:08:31 AEST 1991


In article <5366 at dftsrv.gsfc.nasa.gov> brotzman at nssdca.gsfc.nasa.gov writes:
>   My question:  is it possible to read data that are formatted with implicit
>decimal points in ANSI standard C without writing my own routine?

No, there is no Fortranish support for that in *scanf() formats.

>   I'd be surprised that such an obviously useful bit of functionality
>that has existed for decades in FORTRAN isn't available in C, ...

What is obvious to ME is that such a format is an accident waiting to strike!

It is also TRIVIAL to multiple a scanned integer by a power of 10 to scale
it thusly.



More information about the Comp.lang.c mailing list