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

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
Operators
The Propeller chip features a powerful set of math and logic operators. A subset of these
operators is supported by the Propeller Assembly language; however, since the Spin language
has a use for every form of operator supported by the Propeller, this section describes every
operator in detail. Please see the Operators section on page 390 for a list of operators
available in Propeller Assembly.
Expression Workspace
The Propeller is a 32-bit device and, unless otherwise noted, expressions are always evaluated
using 32-bit, signed integer math.
intermediate result overflows or underflows a 32-bit signed integer (above 2,147,483,647 or
below -2,147,483,648), the final result of the expression will not be as expected.
workspace of 32 bits provides lots of room for intermediate results but it is still wise to keep
overflow/underflow possibilities in mind.
If fractional underflow is an issue, or if real numbers rather than integers are desired in an
expression, floating-point support can help. The compiler supports 32-bit floating-point
values and constant expressions with many of the same math operators as it does for integer
constant expressions. Note that this is for constant expressions only, not run time variable
expressions. For floating-point run-time expressions, the Propeller chip provides support
through the FloatMath object supplied with the software installation.
Assignment ‘=’, page 254;
as the FloatMath and FloatString objects for more information
Operator Attributes
The operators have the following important attributes, each of which is shown in the
following two tables and further explained afterwards:
Unary / Binary
Normal / Assignment
Constant and/or Variable Expression
Level of Precedence
FLOAT
, page 216;
This includes intermediate results as well.
ROUND
, page 303; and
Propeller Manual v1.0 · Page 249
TRUNC
, page 314, as well
See Constant
If any
A

Related parts for 122-32000