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

bodrato at bodrato at
Mon Mar 18 22:30:57 CET 2013


Il Lun, 18 Marzo 2013 12:05 pm, Torbjorn Granlund ha scritto:
> Zimmermann Paul <Paul.Zimmermann at> writes:
>   indeed this is inconsistent. mpf_fits_uint_p(-0.5) should return true,
> as well
>   as mpf_fits_uint_p(-0.99999999999).
> I am not so sure that would be the right fix here.

Do you suggest to change the documentation so that it describes the
current code?


More information about the gmp-devel mailing list