you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 3 weeks ago (2 children)
  • [–] 5 points 3 weeks ago (1 child)

    This phenomenon is called integer overflow.

    Underflow, but close enough

  • source
  • parent
  • hideshow 1 child comment
  • [–] 5 points 3 weeks ago*

    I don't think it's wrong to call it integer overflow, as that covers wrap around in either direction. I don't think there is any mention of "integer underflow" in any IEEE standard.

    There is however mention of arithmetic underflow, but that relates to a precision issue with floating point numbers, and not negative wrap around. (See IEEE 754).

    It's still understood what one might mean by integer underflow. But if anything, I'd say it's a further specification of a type of integer overflow, and certainly not a necessary distinction.

  • source
  • parent