BloombergLP::bdldfp::DecimalImpUtil_IntelDfp::negate

Return the IEEE-754 negation of a decimal value.

Synopsis

Declared in <bdldfp_decimalimputil_inteldfp.h>

static
DecimalImpUtil_IntelDfp::ValueType32
negate(ValueType32 value);

Description

Return the result of applying the unary - operator to the specified value as described by IEEE-754. Note that floating-point numbers have signed zero, therefore this operation is not the same as 0-value.

Return Value

negated value of value

Parameters

NameDescription
valuedecimal value to negate