What is the minimum precision allowed for floats.

Sisyphus sisyphus1 at optusnet.com.au
Tue Sep 30 15:26:21 CEST 2008

----- Original Message ----- 
From: "Joel Kronander" <joekr552 at student.liu.se>
> But when you point me to the mpfr library I am a bit confused.
> I don't see how mpfr should work for "exactly" 6 bits etc. are you sure it
> works?

The mpfr documentation states:

The precision can be any integer between MPFR_PREC_MIN and MPFR_PREC_MAX. In
the current implementation, MPFR_PREC_MIN is equal to 2.

If it doesn't work for 6 bits, then you've found a bug (unless MPFR_PREC_MAX
happens to be less than 6 :-)


More information about the gmp-discuss mailing list