modulo


modulo(i1, i2)
      

Return the remainder of the integers i1 and i2. The result has the same sign as i2.

Examples:


modulo(10, 5)
// 0
modulo(5, 2)
// 1
modulo(10, -3)
// -2
      

Also see:

remainder
quotient
mod
div
rem
quo


Core Module Index | Contents