[#BloombergLP-bdldfp-operator_eq-0a6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimal&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
operator&equals;&equals;(
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] lhs,
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] rhs);
----

== Description

Two decimal objects have the same value if the `compareQuietEqual` operation (IEEE&hyphen;754 defined, non&hyphen;total ordering comparison) considers the underlying IEEE representations equal&period; In other words, two decimal objects have the same value if&colon;

&ast; both have a zero value (positive or negative), or &ast; both have the same infinity value (both positive or negative), or &ast; 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&period;

== Return Value

`true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand
| *rhs*
| right&hyphen;hand operand
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
