Return the closest floating point representation to the specified value.
Declared in <bdljsn_numberutil.h>
static
bdldfp::Decimal64
asDecimal64(std::string_view const& value);
If value is outside the representable range, return +INF or -INF (as appropriate). The behavior is undefined unless isValidNumber(value) is true.
the closest Decimal64 representation of value
| Name | Description |
|---|---|
| value | JSON number text to convert |