BloombergLP::bdldfp::DecimalImpUtil_IntelDfp::convertToDecimal32

convertToDecimal32 overloads

Synopses

Declared in <bdldfp_decimalimputil_inteldfp.h>

Convert a 128-bit decimal value to 32-bit decimal.

static
DecimalImpUtil_IntelDfp::ValueType32
convertToDecimal32(ValueType128 const& input);
» more...

Convert a 64-bit decimal value to 32-bit decimal.

static
DecimalImpUtil_IntelDfp::ValueType32
convertToDecimal32(ValueType64 const& input);
» more...

Return Value

closest 32-bit decimal representation of input

Parameters

NameDescription
input128-bit decimal value to convert