BloombergLP::bdldfp::DecimalUtil::quantizeEqual

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

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