BloombergLP::bdldfp::DecimalUtil::quantize

Same as the related overload above for quantize.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal64
quantize(
    Decimal64 value,
    Decimal64 exponent);

Return Value

value with the same quantum as exponent

Parameters

NameDescription
valuedecimal value to quantize
exponentvalue whose quantum supplies the desired exponent