122-32000 Parallax Inc, 122-32000 Datasheet - Page 251

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Unary / Binary
Each operator is either unary or binary in nature. Unary operators are those that operate on
only one operand. For example:
!Flag
^^Total ' square root of Total
Binary operators are those that operate on two operands. For example:
X + Y
Num << 4 ' shift Num left 4 bits
Note that the term “binary operator” means “two operands,” and has nothing to do with
binary digits. To distinguish operators whose function relates to binary digits, we’ll use the
term “bitwise” instead.
Normal / Assignment
Normal operators, like Add ‘
the result for use by the rest of the expression, without affecting the operand or operands
themselves. Those that are assignment operators, however, write their result to either the
variable they operated on (unary), or to the variable to their immediate left (binary), in
addition to providing the result for use by the rest of the expression.
Lowest (12)
Highest (0)
Level
10
11
1
2
3
4
5
6
7
8
9
Notes
Unary --, ++, ~, ~~, ?, @, @@
Unary +, -, ^^, ||, |<, >|, !
Unary NOT
' bitwise NOT of Flag
' add X and Y
->, <-, >>, <<, ~>, ><
&
|, ^
*, **, /, //
+, -
#>, <#
<, >, <>, ==, =<, =>
AND
OR
=, :=, all other assignments
Operators
Table 4-10: Operator Precedence Levels
+
’ and Shift Left ‘
Inc/Decrement, Clear, Set, Random, Symbol/Object Address
Positive, Negate, Square Root, Absolute, Decode, Encode, Bitwise NOT
Rotate Right/Left, Shift Right/Left, Shift Arithmetic Right, Reverse
Bitwise AND
Bitwise OR, Bitwise XOR
Multiply-Low, Multiply-High, Divide, Modulus
Add, Subtract
Limit Minimum/Maximum
Boolean: Less/Greater Than, Not Equal, Equal, Equal or Less/Greater
Boolean NOT
Boolean AND
Boolean OR
Constant/Variable Assignment, assignment forms of Binary Operators
<<
’, operate on their operand(s) and provide
Operator Names
Propeller Manual v1.0 · Page 251

Related parts for 122-32000