BloombergLP::bdldfp::DecimalImpUtil::quantize

quantize overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Return value with the quantum of exponent.

static
DecimalImpUtil::ValueType128
quantize(
    ValueType128 value,
    ValueType128 exponent);
» more...

Return value quantized to the specified exponent.

static
DecimalImpUtil::ValueType128
quantize(
    ValueType128 value,
    int exponent);
» more...

Return value with the quantum of exponent.

static
DecimalImpUtil::ValueType32
quantize(
    ValueType32 value,
    ValueType32 exponent);
» more...

Return value quantized to the specified exponent.

static
DecimalImpUtil::ValueType32
quantize(
    ValueType32 value,
    int exponent);
» more...

Return value with the quantum of exponent.

static
DecimalImpUtil::ValueType64
quantize(
    ValueType64 value,
    ValueType64 exponent);
» more...

Return value quantized to the specified exponent.

static
DecimalImpUtil::ValueType64
quantize(
    ValueType64 value,
    int exponent);
» more...

Return Value

  • value with the quantum of exponent
  • value quantized to the specified exponent

Parameters

NameDescription
valuevalue to quantize
exponentvalue supplying the target quantum