Shift - Texas Instruments TI-NSPIRE Reference Manual

Ti ti-nspire: reference guide
Hide thumbs Also See for TI-NSPIRE:
Table of Contents

Advertisement

Mode
Mode
Name
Integer
Display Digits
1
Angle
2
Exponential Format
3
Real or Complex
4
Auto or Approx.
5
Vector Format
6
Base
7

shift()

Integer1
#ofShifts
shift(
[,
])
Shifts the bits in a binary integer. You can enter Integer1 in any
number base; it is converted automatically to a signed, 64-bit binary
form. If the magnitude of Integer1 is too large for this form, a
symmetric modulo operation brings it within the range.
If #ofShifts is positive, the shift is to the left. If #ofShifts is negative,
the shift is to the right. The default is
In a right shift, the rightmost bit is dropped and 0 or 1 is inserted to
match the leftmost bit. In a left shift, the leftmost bit is dropped and 0
is inserted as the rightmost bit.
For example, in a right shift:
Each bit shifts right.
0b0000000000000111101011000011010
Inserts 0 if leftmost bit is 0,
or 1 if leftmost bit is 1.
produces:
0b00000000000000111101011000011010
The result is displayed according to the Base mode. Leading zeros are
not shown.
List1
#ofShifts
shift(
[,
])
Returns a copy of List1 shifted right or left by #ofShifts elements.
Does not alter List1.
If #ofShifts is positive, the shift is to the left. If #ofShifts is negative,
the shift is to the right. The default is
Elements introduced at the beginning or end of list by the shift are set
to the symbol "undef".
String1
#ofShifts
shift(
[,
])
Returns a copy of String1 shifted right or left by #ofShifts characters.
Does not alter String1.
If #ofShifts is positive, the shift is to the left. If #ofShifts is negative,
the shift is to the right. The default is
Characters introduced at the beginning or end of string by the shift
are set to a space.
TI-Nspire™ Reference Guide
Setting Integers
=Float,
=Float1,
1
2
=Float8,
=Float9,
9
10
=Fix2,
=Fix3,
16
17
=Fix11,
=Fix12
25
26
=Radian,
=Degree,
1
2
=Normal,
=Scientific,
1
2
=Real,
=Rectangular,
1
2
=Auto,
=Approximate
1
2
=Rectangular,
1
=Decimal,
=Hex,
1
2
integer
ë
1 (shift right one bit).
list
ë
1 (shift right one element).
string
ë
1 (shift right one character).
=Float2,
=Float3,
=Float4,
3
4
5
=Float10,
=Float11,
11
12
=Fix4,
=Fix5,
=Fix6,
18
19
20
=Gradian
3
=Engineering
3
=Polar
3
=Cylindrical,
=Spherical
2
3
=Binary
3
In Bin base mode:
In Hex base mode:
To enter a binary or hexadecimal number, always
Important:
use the 0b or 0h prefix (zero, not the letter O).
In Dec base mode:
=Float5,
=Float6,
=Float7,
6
7
8
=Float12,
=Fix0,
=Fix1,
13
14
15
=Fix7,
=Fix8,
=Fix9,
21
22
23
Catalog >
=Fix10,
24
71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ns/clm/1l1/b - nspire math and science handheld graphing calculatorTi-nspire

Table of Contents