FOR_SET_FPE

 

Run-Time Function: Sets the floating-point exception flags. This routine can be called from a C or Fortran program.

Module

USE IFCORE

Syntax

result = FOR_SET_FPE (a)

a

Must be of type INTEGER(4). It contains bit flags controlling floating-point exception trapping, reporting, and result handling.

Results

The result type is INTEGER(4). The return value represents the previous settings of the floating-point exception flags. The meanings of the bits are defined in the IFCORE module file.

To get the current settings of the floating-point exception flags, use FOR_GET_FPE.

Example

USE IFCORE

INTEGER*4 OLD_FPE_FLAGS, NEW_FPE_FLAGS

OLD_FPE_FLAGS = FOR_SET_FPE (NEW_FPE_FLAGS)