BloombergLP::bdldfp::DecimalUtil::copySign

Same as the overload taking Decimal32.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal64
copySign(
    Decimal64 x,
    Decimal64 y);

Return Value

value with the magnitude of x and the sign of y

Parameters

NameDescription
xvalue providing the magnitude
yvalue providing the sign