
Ben Robinson wrote:
Overflow (positive and negative) are not possible with division and modulus.
hmmm - what happens when an unsigned integer is divided by a negative number? Doesn't this overflow or something?
A positive whole number divided by a negative whole number is a negative value which is smaller in magnitude than the original numerator. With integers, truncation of the fractional part may be involved, but this is not overflow. Integers can only overflow in the positive and negative
On Wed, Feb 22, 2012 at 9:38 AM, Robert Ramey <ramey@rrsd.com> wrote: direction. That is not the same as underflow, which floating point numbers can do. Thank you, Ben Robinson Robert Ramey
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost