Visible to Intel only — GUID: GUID-333AD7C1-87D0-465C-9F3B-5EBD91FB634F
Visible to Intel only — GUID: GUID-333AD7C1-87D0-465C-9F3B-5EBD91FB634F
IEEE_VALUE
Elemental Module Intrinsic Function (Generic): Creates an IEEE value.
Module
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_VALUE (x, class)
x |
(Input) Must be of type REAL. |
||||||||||||
class |
(Input) Must be of type TYPE (IEEE_CLASS_TYPE). Its value is one of the following:
|
IEEE_POSITIVE_DENORMAL and IEEE_POSITIVE_SUBNORMAL are defined with the same value, and IEEE_NEGATIVE_DENORMAL and IEEE_NEGATIVE_SUBNORMAL are defined with the same value.
Results
The result type and kind are the same as x. The result value is an IEEE value as specified by class.
When IEEE_VALUE returns a signaling NaN, it is processor dependent whether or not invalid is signaled and processor dependent whether or not the signaling NaN is converted to a quiet NaN.
Example
IEEE_VALUE (1.0,IEEE_POSITIVE_INF) has the value +infinity.