Built-in Functions → mod

mod() is a scalar arithmetic function that returns the modulus (remainder) resulting from the division of one double by another. In other words, mod() returns the remainder of dividing a numerical dividend by a numerical divisor.

Signature

mod(double dividend, double divisor)
  • dividend : double
  • divisor : double

Returns

double

Example

Find the remainder of performing 19/3.

mod(19,3)