This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR32446 F0.n output format fails with large numbers
- From: Tobias Burnus <burnus at net-b dot de>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 24 Jun 2007 15:47:20 +0200
- Subject: Re: [patch, libgfortran] PR32446 F0.n output format fails with large numbers
- References: <467C8D6F.6090305@verizon.net>
Hi Jerry,
Jerry DeLisle wrote:
> Regression tested on x86-64-pc-Gnu/Linux.
> Test case included.
> OK for trunk?
Ok.
Tobias
Post scriptum:
I find the following quite puzzling. For "print '(F0.1)',huge(1.0)",
gfortran prints:
340282346638528859811704200000000000000.0
whereas ifort prints
340282346638528859811704183484516925400.0
and NAG, Sun, g95 print:
340282346638528859811704183484516925440.0
which matches the exquation/tree-dump:
huge = ((1-(1/2)^24)2^128) = 340282346638528859811704183484516925440
Reading any of these numbers with any of these compilers gives huge(r)
thus one should probably not worry much about it.