Return a value with the magnitude of x and the sign of y.
Synopsis
Description
Return a decimal value with the magnitude of the specifed x and the sign of the specified y. If x is NaN, then NaN with the sign of y is returned.
Examples: copySign( 5.0, ‐2.0) ==> ‐5.0; copySign(‐5.0, ‐2.0) ==> 5.0
Return Value
value with the magnitude of x and the sign of y
Parameters
Name |
Description |
x |
value providing the magnitude |
y |
value providing the sign |
Created with MrDocs