[#BloombergLP-bdldfp-DecimalConvertUtil-decimal32FromDouble]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimal32FromDouble
:relfileprefix: ../../../
:mrdocs:

Return a `Decimal32` converted from the specified `binary`&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalconvertutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]
decimal32FromDouble(
    double binary,
    int digits = 0);
----

== Return Value

decimal value restored from `binary`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *binary*
| binary floating&hyphen;point value to convert
| *digits*
| optional significant digit count&semi; see `decimal128FromFloat`
|===


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