[#BloombergLP-bdljsn-NumberUtil-asDecimal64] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/NumberUtil.adoc[NumberUtil]::asDecimal64 :relfileprefix: ../../../ :mrdocs: Return the closest floating point representation to the specified `value`. == Synopsis Declared in `<bdljsn_numberutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] asDecimal64(std::string_view const& value); ---- == Description If `value` is outside the representable range, return +INF or ‐INF (as appropriate). The behavior is undefined unless `isValidNumber(value)` is `true`. == Return Value the closest `Decimal64` representation of `value` == Parameters [cols="1,4"] |=== | Name| Description | *value* | JSON number text to convert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#