Texas Instruments TI-86 User Manual

Page 337

Advertising
background image

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 118

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 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 =

L79.

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

4Dec b

L

79Þ

Sign bit; 1 indicates a negative number

Advertising