Same as the related overload above for copySign.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal128
copySign(
    Decimal128 x,
    Decimal128 y);

Return Value

value with the magnitude of x and the sign of y

Parameters

Name

Description

x

value providing the magnitude

y

value providing the sign

Created with MrDocs