Skip to main content
Standard supports all common arithmetic operators and follows the standard order of operations (PEMDAS — Parentheses, Exponents, Multiplication, Division, Addition, Subtraction). Unlike languages such as Java, Standard does not suffer from floating-point rounding issues, so your numeric results are precise. Because Standard does not use = for assigning values to variables, all arithmetic operations and string concatenation must be written inside parentheses.

Modulo

Use the % operator to compute the remainder of a division:

String Operations

Standard gives you two ways to concatenate strings: the . operator and the + operator. The behavior of each differs when the operands look like numbers.
Prefer . over + for string concatenation. When both operands of + contain only numeric characters, Standard treats them as numbers and adds them instead of joining them as strings — which can produce unexpected results. Using . always concatenates, regardless of the content.