Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Implicit decimal points in floating-point reads Keywords: scanf,floating point,decimal formats Message-ID: <16222@smoke.brl.mil> Date: 22 May 91 01:08:31 GMT References: <5366@dftsrv.gsfc.nasa.gov> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <5366@dftsrv.gsfc.nasa.gov> brotzman@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.