OVERFL - determine if an overflow has occurred.


call overfl(stat)


is an integer variable which is set to indicate whether a overflow fault has occurred since the last call to OVERFL.
an overflow fault occurred
no overflow fault occurred


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.