[#BloombergLP-bdljsn-NumberUtil-areEqual]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/NumberUtil.adoc[NumberUtil]::areEqual
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `lhs` and `rhs` represent the same numeric value, and `false` otherwise&period; This function will return `true` for differing representations of the same number (e&period;g&period;, `1&period;0`, &quot;1&quot;, &quot;0&period;1e&plus;1&quot; are all equivalent) _except_ in cases where the exponent cannot be represented by a 64&hyphen;bit integer&period; If the exponent is outside the range of a 64&hyphen;bit integer, `true` will be returned if `lhs &equals;&equals; rhs`&period; For example, comparing &quot;1e18446744073709551615&quot; with itself will return `true`, but comparing it to &quot;10e18446744073709551614&quot; will return `false`&period; The behavior is undefined unless `isValidNumber(lhs)` and `isValidNumber(rhs)`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;numberutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
areEqual(
    std::string&lowbar;view const& lhs,
    std::string&lowbar;view const& rhs);
----


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