Return the closest double representation of this number.

Synopsis

Declared in <bdljsn_json.h>

double
asDouble() const;

Description

Return the closest floating point representation to the value of the type JsonNumber held by this object. If this number is outside the representable range, return +INF or ‐INF (as appropriate). The behavior is undefined unless isNumber() returns true.

Return Value

closest double representation of this number

Created with MrDocs