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.


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 value is greater than or equal to the right value.
<="is less than or equal to"Tests to see if the left value is less than or equal to the right value.
>"is greater than"Tests to see if the left value is greater than the right value.
<"is less than"Tests to see if the left value is less than the right value.
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 both of the boolean values on each side of the operator are true.
||"or"This operator returns a true value if either of the boolean values on each side of the operator is true.


Bitwise Operators
SignNamePurpose
&Bitwise AndTests the bits of two numbers and returns a number with only the bits that both numbers had.
|Bitwise OrTests the bits of two numbers and returns a number with the bits that either number had.
^Exclusive Or (XOR)Tests the bits of two numbers and returns a number with the bits that only one 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 rightExclusive "or" (XOR)
|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.