[#BloombergLP-bdldfp-DecimalImpUtil_IntelDfp-convertToDecimal128-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp.adoc[DecimalImpUtil&lowbar;IntelDfp]::convertToDecimal128
:relfileprefix: ../../../
:mrdocs:

`convertToDecimal128` overloads

== Synopses

Declared in `&lt;bdldfp&lowbar;decimalimputil&lowbar;inteldfp&period;h&gt;`

Convert a decimal value to the closest 128&hyphen;bit decimal representation&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType128.adoc[DecimalImpUtil&lowbar;IntelDfp::ValueType128]
xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/convertToDecimal128-06.adoc[convertToDecimal128](xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType32.adoc[ValueType32] const& input);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/convertToDecimal128-06.adoc[_» more&period;&period;&period;_]#

Convert a 64&hyphen;bit decimal value to 128&hyphen;bit decimal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType128.adoc[DecimalImpUtil&lowbar;IntelDfp::ValueType128]
xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/convertToDecimal128-05.adoc[convertToDecimal128](xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType64.adoc[ValueType64] const& input);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/convertToDecimal128-05.adoc[_» more&period;&period;&period;_]#

== Return Value

* closest 128&hyphen;bit decimal representation of `input`
* 128&hyphen;bit decimal representation of `input`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *input*
| decimal value to convert
|===


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