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

Torbjorn Granlund tg at gmplib.org
Tue Mar 19 16:32:15 CET 2013


Vincent Lefevre <vincent at vinc17.net> writes:

  What is the behavior for MAXIMUM + eps (both for signed and unsigned
  types)?

That's indeed something we (GMP and MPFR) should worry about.  Whatever
we decide, we should handle the upper and lower boundaries analogously!

-- 
Torbjörn


More information about the gmp-devel mailing list