[#BloombergLP-bdldfp-DecimalConvertUtil-decimalFromDPD-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimalFromDPD
:relfileprefix: ../../../
:mrdocs:

Store into `decimal` the value decoded from DPD data at `buffer`&period;

== Synopsis

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

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

== Description

The behavior is undefined unless `buffer` points to a memory area at least `sizeof(&ast;decimal)` in size containing a value in DPD format&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *decimal*
| receives the decoded value
| *buffer*
| buffer containing a DPD&hyphen;encoded value
|===


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