[#BloombergLP-bdldfp-DecimalConvertUtil_IntelDfp-decimalToBID-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp.adoc[DecimalConvertUtil&lowbar;IntelDfp]::decimalToBID
:relfileprefix: ../../../
:mrdocs:

`decimalToBID` overloads

== Synopses

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

Same as the related overload above for `decimalToBID`&period;


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

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

Populate the specified `buffer` with the Binary Integer Decimal (BID) representation of the specified `decimal` value&period; The BID representations of `Decimal32`, `Decimal64`, and `Decimal128` require 4, 8, and 16 bytes respectively&period; The behavior is undefined unless `buffer` points to a contiguous sequence of at least `sizeof(decimal)` bytes&period; Note that the BID representation is defined in section 3&period;5 of IEEE 754&hyphen;2008&period;


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

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToBID-03.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `decimalToBID`&period;


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

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToBID-0c.adoc[_» more&period;&period;&period;_]#


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