BloombergLP::bdljsn::JsonNumber::isEqual

Return true if this number and the specified other number represent the same numeric value, and false otherwise. This method will return true for differing representations of the same number (e.g., 1.0, "1", "0.1e+1" are all equivalent) except in cases where the exponent cannot be represented by a 64-bit integer. If the exponent is outside the range of a 64-bit integer, true will be returned if *this == other. For example, comparing "1e18446744073709551615" with itself will return true, but comparing it to "10e18446744073709551614" will return false. Note that this method is more computationally expensive than the equality and inequality operators.

Synopsis

Declared in <bdljsn_jsonnumber.h>

bool
isEqual(JsonNumber const& other) const;