Calculator User Manual

Chapter 20: A to Z Function and Instruction Reference
325
20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 325 of 11820ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 325 of 118
not
BASE BOOL menu
not
integer
Returns the one’s complement of a real
integer
.
Internally,
integer
is represented as a 16-bit binary
number. The value of each bit is flipped (0 becomes 1,
and vice versa) for the one’s complement.
For example,
not
78:
78 = 0000000001001110
Ü
1111111110110001
Ü
(one’s complement)
To find the magnitude of a negative binary number,
determine its two’s complement (take the one’s
complement and then add 1). For example:
1111111110110001
Ü
= one’s complement of 78
0000000001001110
Ü
(one’s complement)
+ 0000000000000001
Ü
0000000001001111
Ü
= 79 (two’s complement)
Therefore,
not
78 =
L
79.
You can enter real numbers instead of integers, but they
are truncated automatically before the comparison.
In
Dec
number base mode:
not 78
b
L
79
In
Bin
number base mode:
not 1001110
b
1111111110110001
Ü
Ans
4
Dec
b
L
79
Þ
Sign bit; 1 indicates a negative number