[#BloombergLP-bdljsn-NumberUtil-asDecimal64Exact]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/NumberUtil.adoc[NumberUtil]::asDecimal64Exact
:relfileprefix: ../../../
:mrdocs:

Load the specified `result` with the specified `value`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
asDecimal64Exact(
    xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64]* result,
    std::string&lowbar;view const& value);
----

== Description

Load `result` even if a non&hyphen;zero status is returned&period; Return 0 if `value` can be represented exactly, and return `k&lowbar;INEXACT` and load `result` with the closest approximation of `value` if `value` cannot be represented exactly&period; A `value` can be represented exactly as a `Decimal64` if, for the significand and exponent of `value`, `abs(significand) &lt;&equals; 9,999,999,999,999,999` and `&hyphen;398 &lt;&equals; exponent &lt;&equals; 369`&period; The behavior is undefined unless `isValidNumber(value)` is `true`&period;

== Return Value

0 if `value` can be represented exactly, and `k&lowbar;INEXACT` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the converted `Decimal64` value
| *value*
| JSON number text to convert
|===


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