BloombergLP::bdljsn::JsonNumber::asDecimal64Exact

Load to the specified result the closest floating point representation to this number, even if a non-zero status is returned. Return 0 if this number can be represented exactly, and return k_INEXACT and load result with the closest approximation if value cannot be represented exactly. If this number is outside the representable range, load result with +INF or -INF (as appropriate). A number can be represented exactly as a Decimal64 if, for the significand and exponent, abs(significand) <= 9,999,999,999,999,999 and -398 <= exponent <= 369.

Synopsis

Declared in <bdljsn_jsonnumber.h>

int
asDecimal64Exact(bdldfp::Decimal64* result) const;