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

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
Here, the value of
assignment form of Divide may also be used within expressions for intermediate results; see
Intermediate Assignments, page 253.
Modulus ‘
Modulus can be used in both variable and integer constant expressions, but not in floating-
point constant expressions. Modulus divides one value by another and returns the 32-bit
integer remainder. Example:
X := Y // 4
If
number whose fractional component equals ¼, or .25.
Modulus has an assignment form,
operand and the result destination. For example,
X //= 20 'Short form of X := X // 20
Here, the value of
assignment form of Modulus may also be used within expressions for intermediate results;
see Intermediate Assignments, page 253.
Limit Minimum ‘
The Limit Minimum operator compares two values and returns the highest value. Limit
Minimum can be used in both variable and constant expressions. Example:
X := Y - 5 #> 100
The above example subtracts 5 from
120 then 120 – 5 = 115; it is greater than 100 so
it is less than 100 so
Limit Minimum has an assignment form,
operand and the result destination. For example,
X #>= 50 'Short form of X := X #> 50
Here, the value of
The assignment form of Limit Minimum may also be used within expressions for
intermediate results; see Intermediate Assignments, page 253.
Page 260 · Propeller Manual v1.0
Y
started out as 5 then
//
’, ‘
//=
X
X
#>
is divided by 20 and the 32-bit integer remainder is stored back in
X
X
is limited to a minimum value of 50 and the result is stored back in
’, ‘
is set to 100 instead.
is divided by 20 and the integer result is stored back in
#>=
Y // 4
equals 1, meaning the division of 5 by 4 results in a real
//=
Y
and limits the result to a minimum value to 100. If
, that uses the variable to its left as both the first
#>=
, that uses the variable to its left as both the first
X
is set to 115. If
Y
is 102 then 102 – 5 = 97;
X
. The
X
. The
Y
X
is
.

Related parts for 122-32000