Math Operators
SignRead asPurpose
+"plus"Addition.
-"minus"Subtraction.
*"times"Multiplication.
/"divided by"Real division.
%"modulo"Modulus is used to obtain the remainder of an integer division. Notes.


Unary Operators
SignRead asPurpose
-"negative"Makes a number negative.


Relational Operators
SignRead asPurpose
=="is equal to"Tests two values for equality.
!="is not equal to"Tests two values for inequality. Notes.
>="is greater than or equal to"Tests to see if the left-hand value is greater than or equal to the right-hand value.
<="is less than or equal to"Tests to see if the left-hand value is less than or equal to the right-hand value.
>"is greater than"Tests to see if the left side is greater than the right side.
<"is less than"Tests to see if the left side is less than the right side.
Relational Operators compare two numbers and return a boolean value.


Logical Operators
SignRead asPurpose
!"not"Reverses a boolean value.
&&"and" This operator returns a true value if the boolean values on each side of the && are true.
||"or"This operator returns a true value if either of the boolean values on each side of the || is true.


Bitwise Operators
SignPurpose
&Tests the bits of two numbers and returns a number with only the bits that both numbers had.
|Tests the bits of two numbers and returns a number with the bits that either number had.


Assignment Operators
SignRead asPurpose
="is assigned to"Assigns the variable on the left to the value on the right.


Operator Precedence and Associativity
PrecedenceAssociativityCategory
( ) [ ]left to rightFunction Call, Parentheses, Array Index
-right to leftUnary Negation
* / %left to rightMultiplication
+ -left to rightAddition
>= <= < >left to rightRelational Operators
== !=left to rightEquality Operators
!right to leftLogical "not"
&left to rightBitwise "and"
|left to rightBitwise "or"
&&left to rightLogical "and"
||left to rightLogical "or"
=right to leftAssignment
,left to rightComma
Operators are listed in order of decending precedence.
Information on Precedence.
Information on Associativity.