[#BloombergLP-bdljsn-JsonNumber-2conversion-03d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::operator float
:relfileprefix: ../../../
:mrdocs:

Return the closest floating point representation to this number&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonnumber&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
operator float() const;
----

== Description

If this number is outside the representable range, return `&plus;INF` or `&hyphen;INF` (as appropriate)&period; Note that the values returned by these operators match those returned by `asFloat`, `asDouble`, and `asDecimal64`, respectively&period;

== Return Value

the closest floating point representation to this number


[.small]#Created with https://www.mrdocs.com[MrDocs]#
