Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 972 Bytes

PRECEDENCE_OPERATORS.md

File metadata and controls

18 lines (17 loc) · 972 Bytes

Precedence of Operators

The following table lists all operators from highest precedence to lowest.

S.No. OPERATOR & DESCRIPTION
1. **
Exponentiation (raise to the power)
2. ~, +, -
Component, unary plus and minus (methods names for last two are +@ and -@)
3. *, /, %, //
Multiply, divide, modulo and floor division
4. +, -
Addition and Subtraction
5. >>, <<
Right and left bitwise shift
6. &
Bitwise 'AND'
7. ^, l
Bitwise exclusive 'OR' and regular 'OR'
8. =
Comparison operator
9. ==, !=
Equality Operators
10. =%, =/, =//, =-, +=, *=, ** =
Assignment Operators
11. is, is not
Identity Operators
12. in, not in
Membership Operators
13. NOT, OR, AND
Logical Operators