122-32000 Parallax Inc, 122-32000 Datasheet - Page 303
![MANUAL PROPELLER](/photos/8/99/89977/mfg_122-32000_sml.jpg)
122-32000
Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
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
- Current page: 303 of 438
- Download datasheet (5Mb)
ROUND
Round a floating-point constant to the nearest integer.
((CON ┆ VAR ┆ OBJ ┆ PUB ┆ PRI ┆ DAT))
Returns: Nearest integer to original floating-point constant value.
Explanation
ROUND
expressions.
floating-point constant expression. Fractional values of ½ (.5) or higher are rounded up to the
nearest whole number while lower fractions are rounded down.
Using ROUND
ROUND
Note that this is for compile-time constant expressions only, not run-time variable
expressions. For example:
The above code creates two floating-point constants,
0.4999, respectively. The next three constants,
that are based on
Rnd3
About Floating-Point Constants
The Propeller compiler handles floating-point constants as a single-precision real number as
described by the IEEE-754 standard. Single-precision real numbers are stored in 32 bits, with
ROUND
CON
•
= 9.
OneHalf = 0.5
Smaller = 0.4999
Rnd1
Rnd2
Rnd3
can be used to round floating-point constants up or down to the nearest integer value.
is one of three directives (
FloatConstant
integer.
( FloatConstant )
ROUND
= round(OneHalf)
= round(Smaller)
= round(Smaller * 10.0) + 4
OneHalf
returns an integer constant that is the closest integer value to the given
is the floating-point constant expression to be rounded to the nearest
and
Smaller
FLOAT
,
using the
ROUND
4: Spin Language Reference –
and
Rnd1
ROUND
TRUNC
OneHalf
,
Rnd2
directive.
) used for floating-point constant
and
Propeller Manual v1.0 · Page 303
and
Rnd3
Smaller
Rnd1
, are integer constants
= 1,
, equal to 0.5 and
Rnd2
= 0, and
Related parts for 122-32000
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![122-27400](/photos/8/99/89964/mfg_122-27400_tmb.jpg)
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![122-28176](/photos/8/99/89965/mfg_122-28176_tmb.jpg)
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![122-28029](/photos/8/99/89971/mfg_122-28029_tmb.jpg)
Part Number:
Description:
GUIDE STUDENT SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
![HW-FLYLEADS](/photos/8/95/89575/hw-flyleads_tmb.jpg)
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
![HW-USB-FLYLEADS-G](/photos/8/95/89577/hw-usb-flyleads-g_tmb.jpg)
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
![HW-USB-II-G](/photos/8/95/89581/hw-usb-ii-g_tmb.jpg)
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
![HW-CRII-PM-ACC-G](/photos/8/98/89837/hw-crii-pm-acc-g_tmb.jpg)
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: