This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange bug/problem with floating point assignments
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: Per Lundberg <per at nobolt dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 6 May 2003 15:12:05 +0200
- Subject: Re: Strange bug/problem with floating point assignments
- References: <1052221403.27317.101.camel@salem.intra.nobolt.net>
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!