Intel® Fortran Compiler 17.0 Developer Guide and Reference
Elemental Module Intrinsic Function (Generic): Returns an argument with a copied sign. This is equivalent to the IEEE copysign function.
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_COPY_SIGN (x,y)
x |
(Input) Must be of type REAL. |
y |
(Input) Must be of type REAL. |
The result type and kind is the same as x. The result has the value x with the sign of y. This is true even for IEEE special values, such as NaN or infinity.
The flags information is returned as a set of 1-bit flags.
The value of IEEE_COPY_SIGN (X,3.0) is ABS (X), even when X is NaN.