Return the closest floating point representation to this number.

Synopsis

Declared in <bdljsn_jsonnumber.h>

explicit
operator float() const;

Description

If this number is outside the representable range, return +INF or ‐INF (as appropriate). Note that the values returned by these operators match those returned by asFloat, asDouble, and asDecimal64, respectively.

Return Value

the closest floating point representation to this number

Created with MrDocs