Skip to content

Mod - Built-in Arithmetic Function

Purpose

Mod returns the remainder after a number is divided by a divisor.

Syntax

Mod (num1, num2)

Arguments

Argument Required Description
num1 Yes Any numeric expression. Specifies the value to divide.
num2 Yes Any numeric expression. Specifies the number to divide by.

Returns

Number

Example

Let nTest = Mod(47.9 , 9.35)

Return nTest // returns 1.15

Notes

  • When the arguments cannot be converted to a number, a runtime error is generated.
  • When num2 is zero, the results will be "Not a Number" (shown as zero).