Return true if the specified lhs and rhs do not have the same value, and false otherwise. Two Decimal32 objects do not have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations not equal. In other words, two Decimal32 objects do not have the same value if:

Synopsis

Declared in <bdldfp_decimal.h>

bool
operator!=(
    Decimal32 lhs,
    Decimal32 rhs);

Description

* both are NaN, or * one is zero (positive or negative) and the other is not, or * one is positive infinity and the other is not, or * one is negative infinity and the other is not, or * both have the value of a real number that are not equal, regardless of their representation (cohorts are equal)

This operation stores the value of the macro EDOM into errno if either or both operands are signaling NaN.

Note that a NaN is never equal to anything, including itself: ` Decimal32 aNaN = std::numeric_limits<Decimal32>::quiet_NaN(); assert(aNan != aNan); `

Created with MrDocs