Visible to Intel only — GUID: GUID-B66C8F5B-E809-4174-A7BF-80BF3FCF3F83
Visible to Intel only — GUID: GUID-B66C8F5B-E809-4174-A7BF-80BF3FCF3F83
IEEE_MAX_NUM
Inquiry Module Intrinsic Function (Generic): Returns the maximum of two values. This is equivalent to the IEEE maxNum operation.
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_MAX_NUM (x,y)
x |
(Input) Must be of type REAL. |
y |
(Input) Must be of type REAL with the same kind type parameter as x. |
The result type is REAL with the same kind type parameter as x. The result is x if y < x. The result is y if x < y.
If one of the arguments is a quiet NaN, the result is the value of the argument which is not a quiet NaN. If either or both of the arguments is a signaling NaN, the result is a NaN and IEEE_INVALID signals. Otherwise, the result value is that of either x or y (processor dependent). No exceptions are signaled unless x or y is a signaling NaN.
This is the maxNum operation as specified in the ISO/IEC/IEEE 60559:2011 standard.
The result value of IEEE_MAX_NUM (3.7, IEEE_VALUE (0.0, IEEE_SIGNALING_NAN)) is a NaN. The exception IEEE_INVALID is signaled.