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::ValueType128
copySign(
    ValueType128 x,
    ValueType128 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