BloombergLP::bdldfp::operator-

Return the result of applying the unary - operator to the specified value as described by IEEE-754, essentially reversing the sign bit.

Synopsis

Declared in <bdldfp_decimal.h>

bdldfp::Decimal32
operator-(Decimal32 value);

Description

Note that floating-point numbers have signed zero, so this operation is not the same as 0 - value.

Return Value

the negated value of value

Parameters

NameDescription
valueoperand