BloombergLP::bdldfp::DecimalImpUtil::notEqual

Return true if lhs and rhs do not have the same value.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
bool
notEqual(
    ValueType32 lhs,
    ValueType32 rhs);

Description

Two decimal objects have the same value if the compareQuietEqual operation (IEEE-754 defined, non-total ordering comparison) considers the underlying IEEE representations equal. In other words, two decimal objects have the same value if:

* both have a zero value (positive or negative), or * both have the same infinity value (both positive or negative), or * both have the value of a real number that are equal, even if they are represented differently (cohorts have the same value)

If either or both operands are signaling NaN, store the value of the macro EDOM into errno and return false.

Return Value

true if lhs and rhs do not have the same value

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand