Mastering macOS Programming
上QQ阅读APP看书,第一时间看更新

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.