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.

Synopsis

Declared in <bdldfp_decimalimputil.h>

Description

Examples: copysign( 5.0, ‐2.0) ==> ‐5.0; copysign(‐5.0, ‐2.0) ==> ‐5.0

Created with MrDocs