Texas Instruments TITANIUM TI-89 User Manual

Page 686

Advertising
background image

Number Bases

686

Note:

If you enter an integer that is too large to be stored in a signed, 32-bit binary form,

a symmetric modulo operation brings the value into the range.

The result is displayed according to the Base mode.

Rotating and Shifting Bits

Rotating and Shifting Bits

Rotating and Shifting Bits

Rotating and Shifting Bits

Function with syntax

Description

rotate(integer)
– or –
rotate(integer,#ofRotations)

If #ofRotations is:

omitted — bits rotate once to the right
(default is

L

1).

negative — bits rotate the specified
number of times to the right.

positive — bits rotate the specified number
of times to the left.

In a right rotation, the rightmost bit rotates to
the leftmost bit; vice versa for a left rotation.

0h7AC36 =

and

0h3D5F

0b00000000000001111010110000110110

and

0b00000000000000000011110101011111
0b00000000000000000010110000010110 = 0h2C16

Leading zeros are not shown in the result.

Advertising