BloombergLP::bdldfp::DecimalUtil::quantizeEqual

Same as the related overload above for quantizeEqual.

Synopsis

Declared in <bdldfp_decimalutil.h>

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

Return Value

0 on success and a non-zero value otherwise

Parameters

NameDescription
xreceives the quantized value on success
yvalue to quantize into x
exponentdesired decimal exponent