> I would have said that 16 positions are enough to accommodate for the
> wide exponent, but even 20 positions produce the sequence of asterisks.
>
> This is the result with both Intel Fortran and gfortran (on Windows,
> fairly recent versions).
>
> What edit descriptors should I put in the format to print these
> numbers?
It's the exponent that doesn't fit in 3-digits. You need to use the
Ew.dEe edit descriptor:
write(*,*) huge(0._16)
write(*,'(E40.30E4)') huge(0._16)
end
See section 10.7.2.3.3 in Fortran 2008 for details.
--
FX