The IEEE standard defines the following five exceptions. By default these excep-
tions set a flag and the computation continues. The implementation can include
a trap handler for each exception that, when enabled, is called when an exception
Occurs.
9 Overflow (when rounded value is too large to be represented). Result is set
to +infinity.
9 Underflow (when rounded value is too small to be represented).
9 Division by zero.
9 Inexact result (result is not an exact floating-point number). Infinite
precision result different from floating-point number.
9 Invalid. This flag is set when a NAN result ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.