August 2024
Intermediate to advanced
256 pages
5h 34m
English
If you wanted to add 20% sales tax to a price of $12.95, you could do something like this...
total = 12.95 + 12.95 * 20 / 100
According to the precedence list above, you would first evaluate the ‘divide’ operator:
20 / 100 = 0.2
Next is multiply
12.95 * 0.2 = 2.59
Finally addition
12.95 + 2.59 = 15.54
Read now
Unlock full access