Same as the overload taking Decimal32.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
int
quantizeEqual(
    Decimal64* x,
    Decimal64 y,
    int exponent);

Return Value

0 on success and a non‐zero value otherwise

Parameters

Name

Description

x

receives the quantized value on success

y

value to quantize into x

exponent

desired decimal exponent

Created with MrDocs