BloombergLP::bdldfp::DecimalImpUtil::convertToDecimal128

convertToDecimal128 overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Convert input to the closest value of the indicated result type.

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

Convert input to the closest ValueType128 value.

static
DecimalImpUtil::ValueType128
convertToDecimal128(ValueType64 const& input);
» more...

Return Value

  • the closest value of the indicated result type
  • the closest ValueType128 value

Parameters

NameDescription
inputvalue to convert