Intel® Fortran Compiler 17.0 Developer Guide and Reference
Run-Time Function: Returns the current settings of floating-point exception flags. This routine can be called from a C or Fortran program.
USE IFCORE
result = FOR_GET_FPE( )
The result type is INTEGER(4). The return value represents the settings of the current floating-point exception flags. The meanings of the bits are defined in the IFPORT module file.
This function is not available on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner).
To set floating-point exception flags after program initialization, use FOR_SET_FPE.
USE IFCORE
INTEGER*4 FPE_FLAGS
FPE_FLAGS = FOR_GET_FPE ( )