Arithmetic is performed with the usual operators: + - * /
Exponentiation is signified by **.
The sign of a numeric value can be changed with unary plus and minus operators (+ and -).
Evaluation Order
Precedence of the arithmetic operators in SML is the conventional ‘algebraic’ order: unary plus/minus performed first, then exponentiation, then multiplication and division, and finally addition and subtraction. Operators of equal precedence are processed from left to right unless this is changed by the use of parentheses.
Figurative Functions
SML does not provide figurative functions such as VatRate() and SQRT(). If such functions are required, they must be implemented as user defined functions.
If the required function already exists in a standard Java library, it is usually trivial to pass such a call.