Visible to Intel only — GUID: GUID-BFB591C7-8A38-4878-9E15-4AD88F2F500D
Visible to Intel only — GUID: GUID-BFB591C7-8A38-4878-9E15-4AD88F2F500D
IEEE_SIGNBIT
Elemental Module Intrinsic Function (Generic): Tests to determine if the argument's sign bit is set. This is equivalent to the IEEE SignMinus operation.
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_SIGNBIT (x)
x |
(Input) Must be of type REAL. |
The result is a scalar of type default logical. The result has the value .true. if the sign bit of x is set (nonzero); otherwise, it has the value .false.. No exception is signaled even if x has the value of a signaling NaN.
This is the SignMinus operation as specified in the ISO/IEC/IEEE 60559:2011 standard.
The result of IEEE_SIGNBIT (-3.14) is .true..