method

remainder

ruby latest stable - Class: BigDecimal
remainder(p1)
public

Returns the remainder from dividing by the value.

x.remainder(y) means x-y*(x/y).truncate