Return true if this number and other represent the same value.
Synopsis
Declared in <bdljsn_jsonnumber.h>
bool
isEqual(JsonNumber const& other) const;
Description
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.
Return Value
true if this number and other represent the same value, and false otherwise
Parameters
Name |
Description |
other |
number to compare with this object |
Created with MrDocs