gmp 4.2.4 - mpf_add two large negative floats - strange result

Sisyphus sisyphus1 at
Thu Jan 22 00:51:22 CET 2009

----- Original Message ----- 
From: "Sisyphus" <sisyphus1 at>


> Math::BigFloat automatically extends its precision to whatever is needed, 
> but not so with GMP (mpf) - if you want other than 53 bits of precision 
> for the mantissa then you need to specify exactly how many you want.

Duh .... 53 bits is the default for mpfr (I think), but the default for 
gmp's mpf type is 64 (on my build, at least).


More information about the gmp-discuss mailing list