OVERFL - determine if an overflow has occurred.
Usage:
call overfl(stat)
Where:
- stat
- is an integer variable which is set to indicate whether a
overflow fault has occurred since the last call to
OVERFL.
- 1
- an overflow fault occurred
- 2
- no overflow fault occurred
Description:
OVERFL tests to see if an overflow fault has occurred. OVERFL
merely indicates that an overflow of some type has occurred; it
does not distinguish between integer overflow, exponent overflow
or exponent underflow.
Overflow actions:
- integer overflow
- the result is left as returned by the hardware.
- exponent overflow
- the largest floating point value (with appropriate sign)
is returned.
- exponent underflow
- floating zero is returned.
See Also:
- expl f77 lib anyerr
- for a method of distinguishing between the different
overflow types.
Copyright © 1996, Thinkage Ltd.