BloombergLP::bdldfp::DecimalUtil::quantize

quantize overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for quantize.

static
Decimal128
quantize(
    Decimal128 value,
    Decimal128 exponent);
» more...

Same as the overload taking Decimal64.

static
Decimal128
quantize(
    Decimal128 value,
    int exponent);
» more...

Return value with the same quantum as exponent.

static
Decimal32
quantize(
    Decimal32 value,
    Decimal32 exponent);
» more...

Return value with the specified decimal exponent.

static
Decimal32
quantize(
    Decimal32 value,
    int exponent);
» more...

Same as the related overload above for quantize.

static
Decimal64
quantize(
    Decimal64 value,
    Decimal64 exponent);
» more...

Same as the related overload above for quantize.

static
Decimal64
quantize(
    Decimal64 value,
    int exponent);
» more...

Return Value

  • value with the same quantum as exponent
  • value with the specified decimal exponent

Parameters

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