[#BloombergLP-bdldfp-DecimalConvertUtil_IntelDfp-decimalToDPD-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp.adoc[DecimalConvertUtil_IntelDfp]::decimalToDPD :relfileprefix: ../../../ :mrdocs: `decimalToDPD` overloads == Synopses Declared in `<bdldfp_decimalconvertutil_inteldfp.h>` Same as the related overload above for `decimalToDPD`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-02e.adoc[decimalToDPD]( unsigned char* buffer, xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] decimal); ---- [.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-02e.adoc[_» more..._]# Populate the specified `buffer` with the Densely Packed Decimal (DPD) representation of the specified `decimal` value. The DPD representations of `Decimal32`, `Decimal64`, and `Decimal128` require 4, 8, and 16 bytes respectively. The behavior is undefined unless `buffer` points to a contiguous sequence of at least `sizeof(decimal)` bytes. Note that the DPD representation is defined in section 3.5 of IEEE 754‐2008. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-07.adoc[decimalToDPD]( unsigned char* buffer, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] decimal); ---- [.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-07.adoc[_» more..._]# Same as the overload taking `Decimal32`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-02a.adoc[decimalToDPD]( unsigned char* buffer, xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] decimal); ---- [.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-02a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#