Visible to Intel only — GUID: GUID-47249E6D-047E-4767-A4AC-96494CFCC4C9
Visible to Intel only — GUID: GUID-47249E6D-047E-4767-A4AC-96494CFCC4C9
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.