BloombergLP::bdldfp::operator-

Return the result of applying unary minus to the specified value.

Synopsis

Declared in <bdldfp_decimal.h>

bdldfp::Decimal128
operator-(Decimal128 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

the negated value of value

Parameters

NameDescription
valueoperand