BloombergLP::bdldfp::DecimalUtil::remainder

remainder overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for remainder.

static
Decimal128
remainder(
    Decimal128 x,
    Decimal128 y);
» more...

Return the remainder of the division of the specified x by the specified y. The remainder of the division operation x/y calculated by this function is exactly the value x - n*y, where n s the integral value nearest the exact value x/y. When |n - x/y| == 0.5, the value n is chosen to be even. Note that in contrast to DecimalImpUtil::fmod(), the returned value is not guaranteed to have the same sign as x.

static
Decimal32
remainder(
    Decimal32 x,
    Decimal32 y);
» more...

Same as the related overload above for remainder.

static
Decimal64
remainder(
    Decimal64 x,
    Decimal64 y);
» more...