Does -0.5 fit an unsigned when truncated to an integer?

Zimmermann Paul Paul.Zimmermann at inria.fr
Tue Mar 19 09:00:14 CET 2013


       Marco,

> This means that MPFR too consider that -0.9 does not fit an unsigned int
> when rounded towards zero... I'd expect all "1".

this is a bug, that is fixed in the development version of MPFR (that now
matches the MPFR documentation).

Paul


More information about the gmp-devel mailing list