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

ID 767251
Date 3/31/2023
Public

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

Document Table of Contents

IEEE_REAL

Elemental Module Intrinsic Function (Generic): Enables conversion to REAL type.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

result = IEEE_REAL (a [, kind])

a

(Input) Must be of type REAL or INTEGER.

kind

(Input; optional) Must be a scalar INTEGER constant.

Results

The result type is REAL. If kind is present, the kind type parameter is that specified by kind; otherwise, the kind type parameter is default real.

The result has the same value as a if that value is representable in the representation method of the result type kind; otherwise, it is rounded according to the current rounding mode.

The result must be consistent with the ISO/IEC/IEEE 60559:2011 operation convertFromInt if a is an integer, and with operation convertFormat if a is real.

Example

The result value of IEEE_REAL (987) is 987.0.