Input/Output:

 

 

 

Level 1/Argument 1

 

 

 

 

Level 1/Item 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#n1

 

 

 

 

#n2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

See also:

RLB, RR, RRB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLB

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description:

Rotate Left Byte Command: Rotates a binary integer one byte to the left.

 

 

 

 

 

 

The leftmost byte of #n1 becomes the rightmost byte of #n2. RLB is equivalent to executing RL

 

eight times.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Access:

à LBYTE 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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#n1

 

 

 

 

#n2

 

 

 

 

See also:

RL, RR, RRB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RND

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description:

Round Function: Rounds an object to a specified number of decimal places or significant digits,

 

or to fit the current display format.

 

 

 

 

 

 

 

 

 

 

 

 

nround (or symbround if flag –3 is set) controls how the level 2 argument is rounded, as follows:

 

 

nround or symbround

 

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 LLRND

( ´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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z1

 

 

nround

 

 

z2

 

 

 

 

 

 

 

 

z

 

 

'symb

round

'

'RND(symb

round

)'

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'symb'

n

round

 

'RND(symb,n

 

)'

 

 

 

 

 

 

 

 

 

 

 

 

round

 

 

 

 

'symb

'

 

'symb

round

'

'RND('symb

, symb

)'

 

 

1

 

 

 

 

 

1

 

 

 

 

round

 

 

 

[ array1 ]

nround

 

[ array2 ]

 

 

 

 

 

 

 

x_unit

nround

 

 

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 ].

Full Command and Function Reference 3-205