Skip to main content

div

Divides one number by another.

Parameters

  • DIVIDEND (number)

    The number to divide.

  • DIVISOR (number)

    The number to divide by.

Examples

ATL in Script

Result

[[div(10, 2)]]

5

[[div(10, 3)]]

3.33

[[div(-3, 6)]]

-0.5

[[div(0, 5)]]

0

[[div(5, 0)]]

MAJOR warning: Cannot divide by zero