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

Torbjorn Granlund tg at gmplib.org
Mon Mar 18 12:05:35 CET 2013


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.

-- 
Torbjörn


More information about the gmp-devel mailing list