BloombergLP::bdldfp::DecimalImpUtil::remainder

remainder overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Return the remainder of dividing x by y.

static
DecimalImpUtil::ValueType128
remainder(
    ValueType128 x,
    ValueType128 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
DecimalImpUtil::ValueType32
remainder(
    ValueType32 x,
    ValueType32 y);
» more...

Return the remainder of dividing x by y.

static
DecimalImpUtil::ValueType64
remainder(
    ValueType64 x,
    ValueType64 y);
» more...