Method: BigDecimal#remainder

Defined in:
bigdecimal.c

#remainderObject

remainder



2125
2126
2127
2128
2129
2130
2131
2132
2133
# File 'bigdecimal.c', line 2125

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 VpCheckGetValue(rv);
}