quantize overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for quantize.

static
Decimal128
quantize(
    Decimal128 value,
    Decimal128 exponent);

Same as the overload taking Decimal64.

static
Decimal128
quantize(
    Decimal128 value,
    int exponent);

Return value with the same quantum as exponent.

static
Decimal32
quantize(
    Decimal32 value,
    Decimal32 exponent);

Return value with the specified decimal exponent.

static
Decimal32
quantize(
    Decimal32 value,
    int exponent);

Same as the related overload above for quantize.

static
Decimal64
quantize(
    Decimal64 value,
    Decimal64 exponent);

Same as the related overload above for quantize.

static
Decimal64
quantize(
    Decimal64 value,
    int exponent);

Return Value

  • value with the same quantum as exponent

  • value with the specified decimal exponent

Parameters

Name

Description

value

decimal value to quantize

exponent

value whose quantum supplies the desired exponent

Created with MrDocs