- Mastering macOS Programming
- Stuart Grimshaw
- 46字
- 2021-07-02 22:54:16
Mathematical operators
The five basic math operators will need no explanation here:
-
+
*
/
%
They are so-called infix operators, meaning that they are placed between their two operands:
let x = (a * a) + (b * b)
The usual rules of precedence apply.