Skip to main content
Version: 5.x

Arithmetic operators

+, -, *, /, (+), (-) operators create properties responsible for arithmetic operations.

Syntax

expression1 + expression2  
expression1 - expression2
expression1 / expression2
expression1 * expression2
-expression1
expression1 (+) expression2
expression1 (-) expression2

Parameters

  • expression1, expression2

    Expressions whose values will be arguments for arithmetic operators.

Examples

sum(a, b) = a + b;
transform(a, b, c) = -a * (b (+) c);