Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!desc.dla.mil!wright!desire.wright.edu!uoft02.utoledo.edu!malgudi!zaphod.mps.ohio-state.edu! pacific.mps.ohio-state.edu!linac!att!ucbvax!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!r2sms From: r2sms@VAX1.CC.UAKRON.EDU (Sujat M Sukthankar) Newsgroups: comp.lang.c Subject: C FLOATING POINT BUG - OR IS IT ? Message-ID: <1991May24.124658.3805@uoft02.utoledo.edu> Date: 24 May 91 17:46:58 GMT Lines: 25 - A CHALLENGE Message-ID: <1378@VAX1.CC.UAKRON.EDU> Date: 24 May 91 14:31:16 GMT Reply-To: r2sms@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