CHECK_MATH Function

Returns and clears the accumulated math error status.

Usage

Input Parameters

Returned Value


CAUTION: On machines that do not implement the IEEE standard for floating-point math, CHECK_MATH does not properly maintain an accumulated error status.

Keywords


NOTE: Trap handling is machine dependent. Some machines won't work properly with traps enabled, while others don't allow disabling traps.

Discussion

Value Condition
0 No errors detected since the last interactive prompt or call to CHECK_MATH.
1 Integer divide by zero.
2 Integer overflow.
16 Floating-point divide by zero.
32 Floating-point underflow.
64 Floating-point overflow.
128 Floating-point operand error. An illegal operand was encountered, such as a negative operand to the SQRT or ALOG functions; or an attempt to convert to integer a number whose absolute value is greater than 231 - 1.


CAUTION: Not all machines detect all errors.

Example





See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.