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

This `struct` provides a namespace for utility functions that convert between the decimal floating&hyphen;point types of `bdldfp&lowbar;decimal` and various other formats&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DecimalConvertUtil&lowbar;IntelDfp;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128FromBID.adoc[`decimal128FromBID`] 
| Return the native value of the BID encoding at `buffer`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128FromDPD.adoc[`decimal128FromDPD`] 
| Return the native value of the DPD encoding at `buffer`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128ToBID.adoc[`decimal128ToBID`] 
| DEPRECATED&colon; Use `decimalToBID` instead&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128ToDPD.adoc[`decimal128ToDPD`] 
| Encode `decimal` into `buffer` in DPD format&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128ToDouble.adoc[`decimal128ToDouble`] 
| Return the closest `double` to the specified `decimal`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal128ToFloat.adoc[`decimal128ToFloat`] 
| Return a `float` having the value closest to the specified `decimal`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32FromBID.adoc[`decimal32FromBID`] 
| Return the decimal decoded from BID data at `buffer`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32FromDPD.adoc[`decimal32FromDPD`] 
| Return the decimal decoded from DPD data at `buffer`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32ToBID.adoc[`decimal32ToBID`] 
| DEPRECATED&colon; Use `decimalToBID` instead&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32ToDPD.adoc[`decimal32ToDPD`] 
| DEPRECATED&colon; Use `decimalToDPD` instead&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32ToDouble.adoc[`decimal32ToDouble`] 
| Return the closest `double` to the specified `decimal`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal32ToFloat.adoc[`decimal32ToFloat`] 
| DEPRECATED&colon; Use `decimalToFloat` instead&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64FromBID.adoc[`decimal64FromBID`] 
| Return the decimal decoded from BID data at `buffer`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64FromDPD.adoc[`decimal64FromDPD`] 
| DEPRECATED&colon; Use `decimalFromDPD` instead&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64ToBID.adoc[`decimal64ToBID`] 
| Encode `decimal` into `buffer` in BID format&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64ToDPD.adoc[`decimal64ToDPD`] 
| Encode `decimal` into `buffer` in DPD format&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64ToDouble.adoc[`decimal64ToDouble`] 
| Return the closest `double` to the specified `decimal`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimal64ToFloat.adoc[`decimal64ToFloat`] 
| Return a `float` having the value closest to the specified `decimal`&period;
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalFromBID-09.adoc[`decimalFromBID`] 
| `decimalFromBID` overloads
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalFromDPD-06.adoc[`decimalFromDPD`] 
| `decimalFromDPD` overloads
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToBID-00.adoc[`decimalToBID`] 
| `decimalToBID` overloads
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDPD-00.adoc[`decimalToDPD`] 
| `decimalToDPD` overloads
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToDouble-07.adoc[`decimalToDouble`] 
| `decimalToDouble` overloads
| xref:BloombergLP/bdldfp/DecimalConvertUtil_IntelDfp/decimalToFloat-06.adoc[`decimalToFloat`] 
| `decimalToFloat` overloads
|===



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