Is INT_MIN-1 an underflow or overflow?
- by Johannes Schaub - litb
I seem to remember that I was reading that
underflow means you have a too small magnitude that cannot be presented anymore in a type
overflow means you have a too large magnitude that cannot be presented anymore in a type
However, in practice I perceive that the terms are used such that
underflow means you have a too small value that cannot be presented anymore in a type
overflow means you have a too large value that cannot be presented anymore in a type
What is the correct meaning to use here? Are the terms defined differently for integer and floating point types?