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

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
Propeller Programming Tutorial
Floating-Point Numbers
In many cases, expressions involving real numbers can be solved without using floating-point
values and methods, such as with the pseudo-real number technique. Since solutions like the
one above tend to execute much faster and consume less memory, it is recommended that you
think carefully about whether or not you really need floating-point support before you
actually use it. If you can afford the extra execution time and memory usage, floating-point
support may be the best solution.
The Propeller Tool supports floating-point constants directly. The Propeller chip supports
floating-point run-time expressions through the use of objects; ie: at run time the Spin
Interpreter can only directly process integer-based expressions.
The next example object, RealNumbers.spin, demonstrates using integer constants (
,
,
iB
iC
and
) that are pre-translated to pseudo-real numbers, floating-point constants (
,
, and
)
iD
B
C
D
used in their native form by the FloatMath and FloatString library objects, and also those
same floating-point constants translated to pseudo-real numbers at compile time.
Page 144 · Propeller Manual v1.0

Related parts for 122-32000