[#BloombergLP-bdldfp-DecimalImpUtil-convertToDecimal128-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::convertToDecimal128
:relfileprefix: ../../../
:mrdocs:

`convertToDecimal128` overloads

== Synopses

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

Convert `input` to the closest value of the indicated result type&period;


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

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/convertToDecimal128-0a.adoc[_» more&period;&period;&period;_]#

Convert `input` to the closest `ValueType128` value&period;


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

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

== Return Value

* the closest value of the indicated result type
* the closest `ValueType128` value

== Parameters

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


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