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]

[Bug c++/26428] New: Buged FLoat Numbers in GCC


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

583.4 - 1583.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: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: g dot delaportas at gmail dot com
GCC target triplet: GCC / G++ 3.3.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26428


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