BloombergLP::bdldfp::DecimalImpUtil::negate

Return the negation of value.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType32
negate(ValueType32 value);

Description

Note that decimal floating point representations can encode signed zero values, thus negating 0 results in -0 and negating -0 results in 0.

Return Value

the negation of value

Parameters

NameDescription
valuevalue to negate