method

remainder

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

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

See Numeric#divmod.