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

`decimalToDPD` overloads

== Synopses

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

Same as the overload taking `Decimal32`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-00.adoc[decimalToDPD](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-00.adoc[_» more&period;&period;&period;_]#

Populate `buffer` with the DPD representation of `decimal`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-01.adoc[decimalToDPD](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-01.adoc[_» more&period;&period;&period;_]#

Same as the overload taking `Decimal32`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-02.adoc[decimalToDPD](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToDPD-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| receives the DPD encoding
| *decimal*
| value to encode
|===


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