Article View: comp.sys.mac
Article #4470bug in THINK C 4.0
From: Christian L. Keppenne
Date: Wed, 13 Sep 1989 00:12
Date: Wed, 13 Sep 1989 00:12
26 lines
1244 bytes
1244 bytes
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
Technical Details
Message-ID:
<11886@cit-vax.Caltech.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!cit-vax!tybalt.caltech.edu!christShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!cit-vax!tybalt.caltech.edu!christ From: christ@tybalt.caltech.edu (Christian L. Keppenne) Newsgroups: comp.sys.mac Subject: bug in THINK C 4.0 Message-ID: <11886@cit-vax.Caltech.Edu> Date: 13 Sep 89 00:12:34 GMT Sender: news@cit-vax.Caltech.Edu Reply-To: christ@tybalt.caltech.edu.UUCP (Christian L. Keppenne) Organization: California Institute of Technology Lines: 26