Reference Guide
Full Command and Function Reference 3-205
Input/Output:
Level 1/Argument 1 Level 1/Item 1
#n
1
→
#n
2
See also: RLB, RR, RRB
RLB
Type: Command
Description: Rotate Left Byte Command: Rotates a binary integer one byte to the left.
The leftmost byte of #n
1
becomes the rightmost byte of #n
2
. RLB is equivalent to executing RL
eight times.
Access: … ã L
BYTE RLB
(ã is the right-shift of the 3key).
Flags: Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
#n
1
→
#n
2
See also: RL, RR, RRB
RND
Type: Function
Description: Round Function: Rounds an object to a specified number of decimal places or significant digits,
or to fit the current display format.
n
round
(or symb
round
if flag –3 is set) controls how the level 2 argument is rounded, as follows:
n
round
or symb
round
Effect on Level 2 Argument
0 through 11 Rounded to n decimal places.
–1 through –11 Rounded to n significant digits.
12 Rounded to the current display format.
For complex numbers and arrays, each real number element is rounded. For unit objects, the
numerical part of the object is rounded.
Access: !´
REAL
LL
RND
( ´ is the left-shift of the Pkey).
Flags: Numerical Results (–3)
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
z
1
n
round
→
z
2
z
'symb
round
'
→
'RND(symb
round
)'
'symb'
n
round
→
'RND(symb,n
round
)'
'symb
1
'
'symb
round
'
→
'RND('symb
1
, symb
round
)'
[ array
1
]
n
round
→
[ array
2
]
x_unit
n
round
→
y_unit
x_unit
'symb
round
'
→
'RND(x_unit, symb
round
)'
Example 1:
(4.5792,8.1275) 2 RND
returns
(4.58,8.13)
.
Example 2:
[ 2.34907 3.96351 2.73453 ] -2 RND
returns
[ 2.3 4 2.7 ]
.