This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange bug/problem with floating point assignments


On Tue, May 06, 2003 at 01:43:24PM +0200, Per Lundberg wrote:
> There seems to be a very serious error pertaining floating point
> assignments.  The attached source code file demonstrates it.  This is a

Nope. The floating point constants you specify are not representable
exactly in the IEEE floating point format. Hence the rounding differences.
See the section: ``Problems with floating point computations'' on
http://gcc.gnu.org/bugs.html.

   regards  Christian


-- 
THAT'S ALL FOLKS!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]