BloombergLP::bdldfp::DecimalImpUtil::convertToDecimal32

Convert input to the closest ValueType32 value.

Synopses

Declared in <bdldfp_decimalimputil.h>

Convert input to the closest ValueType32 value.

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

Convert input to the closest ValueType32 value.

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

Return Value

the closest ValueType32 value

Parameters

NameDescription
inputvalue to convert