Return a value with the magnitude of x and the sign of y.
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
value with the magnitude of x and the sign of y
| Name | Description |
|---|---|
| x | value providing the magnitude |
| y | value providing the sign |