[#BloombergLP-bdljsn-Json-asDecimal64]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::asDecimal64
:relfileprefix: ../../../
:mrdocs:

Return the closest `Decimal64` representation of this number&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64]
asDecimal64() const;
----

== Description

Return the closest floating point representation to the value of the type `JsonNumber` held by this object&period; If this number is outside the representable range, return &plus;INF or &hyphen;INF (as appropriate)&period; The behavior is undefined unless `isNumber()` returns true&period;

== Return Value

closest `Decimal64` representation of this number


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