This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Failure of default_format_1.f90
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Date: Wed, 03 Oct 2007 22:34:14 +0200
- Subject: Re: Failure of default_format_1.f90
> 2.22507385850710652E-308
> ^^^
> There are garbage.
For "normal" floating point numbers (real(16)), although
precision(1.d0)=15, you need 17 digits to be able to distinguish
consecutive numbers. For denormalized ones, you probably need
less, but unless you follow the strategy of g95 which outputs only
the number of digits necessary to have a unique ouput for any FP,
you are left with the default value.
For the problem with default_format_1.f90, see my comment to PR33469.
Dominique