method

modulo

v1_9_2_180 - 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.