Intel® Fortran Compiler 18.0 Developer Guide and Reference

IEEE_CLASS

Elemental Module Intrinsic Function (Generic): Returns the IEEE class.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

result = IEEE_CLASS (x)

x

(Input) Must be of type REAL.

Results

The result is of type TYPE(IEEE_CLASS_TYPE). The result value is one of the following:

IEEE_SIGNALING_NAN

IEEE_NEGATIVE_NORMAL

IEEE_QUIET_NAN

IEEE_POSITIVE_DENORMAL

IEEE_POSITIVE_INF

IEEE_NEGATIVE_DENORMAL

IEEE_NEGATIVE_INF

IEEE_POSITIVE_ZERO

IEEE_POSITIVE_NORMAL

IEEE_NEGATIVE_ZERO

IEEE_CLASS does not return IEEE_OTHER_VALUE in Intel® Fortran.

Example

IEEE_CLASS(1.0) has the value IEEE_POSITIVE_NORMAL.

See Also