## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

### 3.8. Arithmetic

Most apps perform arithmetic calculations. The arithmetic operators are summarized in Fig. 3.18. Note the various special symbols not used in algebra. The asterisk (*) indicates multiplication, and the percent sign (%) is the remainder operator (called modulus in some languages), which we’ll discuss shortly. The arithmetic operators in Fig. 3.18 are binary operators—for example, the expression `f + 7` contains the binary operator `+` and the two operands `f` and `7`.

Fig. 3.18. Arithmetic operators.

If both operands of the division operator (`/`) are integers, integer division is performed and the result is an integer—for example, the expression ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required