HUGE() pain in the ...
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sun Jul 18 12:20:00 GMT 2004
Steve Kargl wrote:
>
> Well, I now know what the problem is. The MPFR function
>
> p = mpfr_get_str (NULL, &exp, 10, 0, f, GFC_RND_MODE);
>
> in gfc_conv_mpfr_to_tree() will return "the maximum possible number
> of digits giving an exact rounding in the given base BASE with the
> direction RND". For BASE=10 and round to nearest, the maximum number
> of decimal digits for REAL(4) and REAL(8) are 6 and 15.
>
How about using a base 16 string? real_from_string2 supports those as well.
- Tobi
More information about the Fortran
mailing list