7.8 Operator Precedence

The following table describes operator precedence. Smaller-numbered levels in the table have higher precedence. Within a level, operations are always performed from left to right. The first occurrence of ‘-’ represents unary negation, the second binary subtraction.

  1. ()
  2. **
  3. -
  4. * /
  5. + -
  6. = >= > <= < <>
  7. NOT
  8. AND
  9. OR