411 REFERENCE · Wikibooks
A-level Computing/AQA/Paper 2/Fundamentals of data representation/Underflow and overflow
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Rounding errors
Floating point numbers
TODOː Absolute and Relative errors
From the Specification : Fundmentals of Data Representation
Explain underflow and overflow and describe the circumstances in which they occur.
Underflow
When a number or the result of an equation is too small, you might not have enough digits in your mantissa and exponent to show it. In the following example the number would register as 0
Try and show 0.0000000000000000000000000001 in 12 bit FP
Overflow
When the result of a sum is too large to be represented by your number system you might run out of space to represent it and end up storing a much smaller number
Try and show 99,999,999,999,999,999,999 in 12 bit FP