4 ms·
More likely to be underflow. -296, when interpreted as an unsigned 32-bit integer, is 4294967000, which exactly matches the balance the person was seeing.
by eridius 10y ago
More likely to be underflow.
-296, when interpreted as an unsigned 32-bit integer, is 4294967000, which exactly matches the balance the person was seeing.
- SamReidHughes 10y agoUnderflow is when a nonzero floating point number is too small to be represented.
- Waterluvian 10y agoThanks for sharing. Didn't know that. Always thought it was as suggested above: you loop around by going negative.
- eridius 10y agoOverflow is generation of numbers that are too large. If I can't use "underflow" to mean trying to go negative with an unsigned integer, then what term am I supposed to use?
- SamReidHughes 10y agoIt is forbidden! You must not speak of it.