[#BloombergLP-bdldfp-operator_eq-0c0] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator== :relfileprefix: ../../ :mrdocs: Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `Decimal64` 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 `Decimal64` objects have the same value if: == Synopsis Declared in `<bdldfp_decimal.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] lhs, xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] rhs); ---- == Description * 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) 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: ` Decimal64 aNaN = std::numeric_limits<Decimal64>::quiet_NaN(); assert(!(aNan == aNan)); ` [.small]#Created with https://www.mrdocs.com[MrDocs]#