This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26431] New: Buged FLoat Numbers in GCC
- From: "g dot delaportas at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2006 21:12:36 -0000
- Subject: [Bug c++/26431] New: Buged FLoat Numbers in GCC
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When using g++ as a compiler and my program is trying to substract to floats
that have the same ending digits, after comma, or even when the digits are not
even or odd at the same time the returned number is buged!
For example:
105.8 - 108.5 ===> 2.699997
1583.5- 583.4 ===> 1000.099976
The same problem might exists in gcc.
Check It!
----------------
Geoge Delaportas
Dimitris Vlachos
--
Summary: Buged FLoat Numbers in GCC
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: g dot delaportas at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26431