Does -0.5 fit an unsigned when truncated to an integer?
bodrato at mail.dm.unipi.it
bodrato at mail.dm.unipi.it
Mon Mar 18 22:30:57 CET 2013
Ciao,
Il Lun, 18 Marzo 2013 12:05 pm, Torbjorn Granlund ha scritto:
> Zimmermann Paul <Paul.Zimmermann at inria.fr> 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?
--
http://bodrato.it/
More information about the gmp-devel
mailing list