This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/35862] [F2003] Implement new rounding modes for run time
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2009 20:18:28 -0000
- Subject: [Bug libfortran/35862] [F2003] Implement new rounding modes for run time
- References: <bug-35862-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from dominiq at lps dot ens dot fr 2009-10-01 20:18 -------
There is probably a bug with round to nearest for values below 1:
print '(RN, 4F10.3)', 0.0625, 0.1875
print '(RN, 4F10.2)', 0.125, 0.375, 1.125, 1.375
print '(RN, 4F10.1)', 0.25, 0.75, 1.25, 1.75
print '(RN, 4F10.0)', 0.5, 1.5, 2.5, 3.5
end
gives
0.063 0.188
0.13 0.38 1.12 1.38
0.3 0.8 1.2 1.8
1. 2. 2. 4.
ifort gives (what I was expecting):
0.062 0.188
0.12 0.38 1.12 1.38
0.2 0.8 1.2 1.8
0. 2. 2. 4.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35862