Shared IEEE exception indicators #
Binary and decimal operations signal the same five exceptions. Their numerical conditions, including tininess detection, belong to each format. The flag record and sticky accumulation do not depend on radix, precision, storage, or rounding direction.
The five default exception indicators of IEEE 754-2019 §7.
- invalid : Bool
An operand or operation was invalid.
- divideByZero : Bool
An exact infinite result was obtained from finite operands.
- overflow : Bool
The precision-rounded result exceeded the finite exponent range.
- underflow : Bool
A tiny result was inexact.
- inexact : Bool
The delivered result differs from the exact result.
Instances For
Instances For
The five IEEE floating-point exceptions, individually addressable as flags.
- invalid : IEEEException
- divideByZero : IEEEException
- overflow : IEEEException
- underflow : IEEEException
- inexact : IEEEException
Instances For
Instances For
Accumulate exceptions, preserving every flag raised by either computation.
Instances For
Read one exception flag.
Instances For
Construct a flag group by specifying its members.
Instances For
A group containing exactly one exception.
Instances For
The group of all five exceptions.
Instances For
Set each flag in a group, preserving all other flags.
Instances For
Clear each flag in a group, preserving all other flags.
Instances For
Whether at least one selected flag is raised.
Instances For
Save all flags as an immutable value.
Instances For
Test a saved snapshot without changing the current environment.
Instances For
Restore the selected flags from a saved value, preserving flags outside the group.