BloombergLP::bdldfp::DecimalImpUtil::copySign

Return a value with the magnitude of x and the sign of y.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType64
copySign(
    ValueType64 x,
    ValueType64 y);

Return Value

a value with the magnitude of x and the sign of y

Parameters

NameDescription
xvalue supplying the magnitude
yvalue supplying the sign