[comp.sys.mac] bug in THINK C 4.0

christ@tybalt.caltech.edu (Christian L. Keppenne) (09/13/89)

I have found the following funny behavior of scanf,fscanf etc... with THINK C
4.0. If itry to scanf a number, either float or double, with the either one
of the formats %f,%g,%e or %lf,%lg,%le, everything works fine unless the 
number begins with 0. followed by any number of other zeros. In this case
all zeros between the decimal point and the first non zero digit are lost.
Examples:
	INPUT		READ AS
0.002			0.2
-.002			-.2
-0.002			-0.2
.002			.2



etc....



I am not a regular reader of this newsgroup, so please forgive me if this has
already been reported a thousand times. Please also forgive me if it is me
who am going crazy rather than a gross bug in the program, in which case
I also apologize to SYMANTEC. 


Christian Keppenne