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.
x
y
Declared in <bdldfp_decimalutil.h>
<bdldfp_decimalutil.h>
static Decimal32 copySign( Decimal32 x, Decimal32 y);
Examples: copySign( 5.0, -2.0) ==> -5.0; copySign(-5.0, -2.0) ==> 5.0
copySign( 5.0, -2.0)
copySign(-5.0, -2.0)