Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual522629-013
5-265
FP_IEEE_EXCEPTIONS_SET_ Procedure
Exception flag values of NewFlags are:
Considerations
See Considerations on page 5-262 for a description of considerations for this
procedure.
Examples
See Examples on page 5-262 for examples of the use of this call.
FP_IEEE_INVALID Arithmetic calculations using either positive or
negative infinity as an operand, zero divided by
zero, the square root of -1, the rem function with
zero as a divisor (which causes divide by zero),
comparisons with invalid numbers, or impossible
binary-decimal conversions.
FP_IEEE_DIVBYZERO Computing x/0, where x is finite and nonzero.
FP_IEEE_OVERFLOW Result too large to represent as a normalized
number.
FP_IEEE_UNDERFLOW Result both inexact and too small to represent
as a normalized number.
FP_IEEE_INEXACT Result less accurate than it could have been
with a larger exponent range or more fraction
bits. Most commonly set when rounding off a
repeating fraction such as 1.0/3.0. Also set for
underflow cases and some overflow cases, but
not for division by zero.