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 libfortran/48047] Incorrect output rounding of double precision numbers


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-09 19:06:12 UTC ---
For what it is worth: On x86-64-linux (openSUSE Factory, GLIBC 2.11.3), I get:

Got:      0.142857142857142849212692681248881854120
Expected: 0.142857142857142849212692681248881854116
Got:      0.142857142857142849212692681248881854120
Expected: 0.142857142857142849212692681248881854117

Using ifort 11.1 on the same machine:

Got:      0.142857142857142849212692681248881854100
Expected: 0.142857142857142849212692681248881854116
Got:      0.142857142857142849212692681248881854200
Expected: 0.142857142857142849212692681248881854117

Using crayftn 7.2.4, I get on another x86-64-linux (SLES 10/Cray):

Got:      0.142857142857142849000000000000000000000
Expected: 0.142857142857142849212692681248881854116
Got:      +.142857142857142849000000000000000000000
Expected: 0.142857142857142849212692681248881854117

My impression is that all twelve numbers are numerically identical and lead to
the same binary representation. Hence, I believe the three compilers print the
correct result.


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