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: HUGE() pain in the ...


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


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