4.1. Order of Operations

Calculations are performed from left to right with no arithmetic precedence. To apply arithmetic precedence, use parentheses.

For example, without parentheses:

2 + 3 * 4 = 20 

With parentheses:

2 + (3 * 4) = 14

Previous
Technical Information
Contents Next
Error Conditions

About GNOME · Download · Users · Documentation · Developers · Foundation · Contact