method

modulo

v1_9_3_392 - Show latest stable - Class: Numeric
modulo(p1)
public

x.modulo(y) means x-y*(x/y).floor

Equivalent to num.divmod(aNumeric)[1].

See Numeric#divmod.