This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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


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