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

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
Limit Maximum ‘
The Limit Maximum operator compares two values and returns the lowest value. Limit
Maximum can be used in both variable and constant expressions. Example:
X := Y + 21 <# 250
The above example adds 21 to
then 200 + 21 = 221; it is less than 250 so
greater than 250 so
Limit Maximum 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.
Square Root ‘
The Square Root operator returns the square root of a value. Square Root can be used in both
variable and constant expressions. When used with variable expressions or integer constant
expressions, Square Root returns the 32-bit truncated integer result.
floating-point constant expressions, Square Root returns the 32-bit single-precision floating-
point result. Example:
X := ^^Y
Square Root becomes an assignment operator when it is the sole operator to the left of a
variable on a line by itself. For example:
^^Y
This would store the square root of the value of
Absolute Value ‘
The Absolute Value operator, also called Absolute, returns the absolute value (the positive
form) of a number. Absolute Value can be used in both variable and constant expressions.
When used with variable expressions or integer constant expressions, Absolute Value returns
the 32-bit integer result. When used with floating-point constant expressions, Absolute Value
returns the 32-bit single-precision floating-point result. Example:
^^
X
X
||
<#
is limited to a maximum value of 50 and the result is stored back in
is set to 250 instead.
’, ‘
<#=
Y
and limits the result to a maximum value to 250. If
X
<#=
is set to 221. If
, that uses the variable to its left as both the first
Y
back into
Y
Y
.
is 240 then 240 + 21 = 261; it is
Propeller Manual v1.0 · Page 261
When used with
Y
is 200
X
.

Related parts for 122-32000