remainder(p1)
Returns the remainder from dividing by the value.
x.remainder(y) means x-y*(x/y).truncate
static VALUE BigDecimal_remainder(VALUE self, VALUE r) /* remainder */ { VALUE f; Real *d, *rv = 0; f = BigDecimal_divremain(self, r, &d, &rv); if (!NIL_P(f)) return f; return ToValue(rv); }