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

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

Vincent Lefevre <vincent at> writes:

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

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


More information about the gmp-devel mailing list