Arithmetic Operations

The Integrator Calc object supports the following arithmetic operators:

+, -, *, /

These operators perform the standard arithmetic operations (add, subtract, multiply and divide). These operations can be expressed in the arithmetic format or the functional format using the names "add", "sub", "mul", and "div". The functional format is:

function (arg1, arg2,...)

NOTE: When dividing by 0, no value (a null value) is returned.

Examples:

1 + 2 returns 3
add(1,2) returns 3
3 * 4 returns 12
mul(3,4) returns 12
1/0 returns null