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`

.

If both operands of the division operator (`/`

) are integers, **integer division** is performed and the result is an integer—for example, the expression ...

Start Free Trial

No credit card required