BloombergLP::bdldfp::DecimalImpUtil::copySign

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

Synopses

Declared in <bdldfp_decimalimputil.h>

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

static
DecimalImpUtil::ValueType128
copySign(
    ValueType128 x,
    ValueType128 y);
» more...

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

static
DecimalImpUtil::ValueType32
copySign(
    ValueType32 x,
    ValueType32 y);
» more...

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

static
DecimalImpUtil::ValueType64
copySign(
    ValueType64 x,
    ValueType64 y);
» more...

Return Value

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

Parameters

NameDescription
xvalue supplying the magnitude
yvalue supplying the sign