[#BloombergLP-bdljsn-Json-asFloat] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::asFloat :relfileprefix: ../../../ :mrdocs: Return the closest floating point representation to the value of the type `JsonNumber` held by this object. If this number is outside the representable range, return +INF or ‐INF (as appropriate). The behavior is undefined unless `isNumber()` returns true. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- float asFloat() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#