Visible to Intel only — GUID: GUID-6D23839B-5A8B-4FB0-9073-C63600073585
Visible to Intel only — GUID: GUID-6D23839B-5A8B-4FB0-9073-C63600073585
IEEE_MIN_MAG
Inquiry Module Intrinsic Function (Generic): Returns the minimum magnitude of two values. This is equivalent to the IEEE minimumMagnitude operation.
Module
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_MIN_MAG (x,y)
x |
(Input) Must be of type REAL. |
y |
(Input) Must be of type REAL with the same kind type parameter as x. |
Results
The result type is REAL with the same kind type parameter as x. The result is x if ABS(x) < ABS(y). The result is the value of y if ABS(y) < ABS(x). Otherwise, the result is the same as IEEE_MIN (x, y).
If either or both of the arguments is a signaling NaN, the exception IEEE_INVALID is signaled. No other exceptions are signaled.
This is the minimumMagnitude operation as specified in the ISO/IEC 60559:2020 standard.
Example
The result value of IEEE_MIN_MAG (3.7, -7.5) is 3.7.