Skip to content

+ − * /

Operator

Numeric arithmetic. + does not concatenate. * is multiply, never pointer deref.

a + b - c * d / e

None.

A number.

same operators

Left-to-right association with usual precedence. Unary - is negation. Join text with .:.

int total = coins + gems * 2;

Emits:

local total: number = coins + gems * 2

operator-assignment · operator-increment · operator-concat