BloombergLP::bdldfp::DecimalImpUtil::quantize

Return value with the quantum of exponent.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType128
quantize(
    ValueType128 value,
    ValueType128 exponent);

Return Value

value with the quantum of exponent

Parameters

NameDescription
valuevalue to quantize
exponentvalue supplying the target quantum