method

remainder

v2_6_3 - Show latest stable - Class: Numeric
remainder(p1)
public

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

See Numeric#divmod.