[#BloombergLP-bdljsn-NumberUtil-asFloat] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/NumberUtil.adoc[NumberUtil]::asFloat :relfileprefix: ../../../ :mrdocs: Return the closest floating point representation to the specified `value`. If `value` is outside the representable range, return +INF or ‐INF (as appropriate). The behavior is undefined unless `isValidNumber(value)` is `true`. == Synopsis Declared in `<bdljsn_numberutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static float asFloat(std::string_view const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#