Skip to main content
Version: 7.0

Arithmetic operators

The +, -, *, /, (+), (-) operators create properties that implement arithmetic operations.

Syntax

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

Description

The binary operators each take two operands and associate left to right; the unary minus takes a single operand. The evaluation order relative to other operators follows operator priority.

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);