C FLOATING POINT BUG - OR IS IT ?

Sujat M Sukthankar r2sms at VAX1.CC.UAKRON.EDU
Sat May 25 09:40:39 AEST 1991


                                                  
                  - A CHALLENGE
Message-ID: <1378 at VAX1.CC.UAKRON.EDU>
Date: 24 May 91 14:31:16 GMT
Reply-To: r2sms at VAX1.CC.UAKRON.EDU (Sujat M Sukthankar)
Distribution: usa
Organization: U of Akron, Ohio
Lines: 15


      The following is a major/minor bug which maybe/may not be trivial.

Try assigning a "float" variable to a "double" variable - results in a
loss of accuracy with the magnitude being greater for larger numbers. A
"promotion" should result in better accuracy and not viceversa. A simple
rogram was tested on the Microsoft Ver 6 compiler and also the watcom
386 compiler. The problem started off as trivial but still hasn't been
solved.             

                     
      
       See if you any of you guys out there can do it.

n a better accuracy 



More information about the Comp.lang.c mailing list