Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.