# math_exception_check

status.i4.v = math_exception_check()
This routine returns and clears the last condition trapped by
math_exception_establish. If no trap has occurred, a value
of SS__NORMAL is returned. Nested calls to this facility can
result in errors occurring in one layer being detected and
cleared in another. Therefore, this routine should be called
immediately after every mathematical expression so that error
information is not lost.
This function returns status values as follows:
SS__NORMAL no trap has occurred
SS__FLTDIV_F floating divide by zero
SS__FLTOVF_F floating overflow
SS__FLTUND_F floating underflow
SS__INTOVF integer overflow
SS__INTDIV integer divide by zero
MTH__FLOOVEMAT floating overflow in math library
MTH__LOGZERNEG logarithm of zero or a negative value
SS__xxx other trapped error condition
This function requires the following include files:
cbslib_h, ssdef_h, mthdef_h
Related functions:
math_exception_establish
C/C++ usage:
int status;
status = math_exception_check();