[#BloombergLP-bdljsn-JsonNumber-asFloat] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::asFloat :relfileprefix: ../../../ :mrdocs: Return the closest floating point representation to this number. If this number is outside the representable range, return `+INF` or `‐INF` (as appropriate). Note that values smaller than the smallest representable non‐zero value (a.k.a, `MIN`) are rounded to `MIN` (positive or negative, as appropriate) or 0, whichever is the better approximation. == Synopsis Declared in `<bdljsn_jsonnumber.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- float asFloat() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#