Texas Instruments TITANIUM TI-89 User Manual

Page 685

Advertising
background image

Number Bases

685

Note:

You can select these operators from the MATH/Base menu. For an example using

each operator, refer to the Technical Reference module.

integer1 and integer2

In a bit-by-bit and comparison, the result is 1 if
both bits are 1; otherwise, the result is 0. The
returned value represents the bit results.

integer1 or integer2

In a bit-by-bit or comparison, the result is 1 if
either bit is 1; the result is 0 only if both bits are
0. The returned value represents the bit results.

integer1 xor integer2

In a bit-by-bit xor comparison, the result is 1 if
either bit (but not both) is 1; the result is 0 if both
bits are 0 or both bits are 1. The returned value
represents the bit results.

Suppose you enter:

0h7AC36

and

0h3D5F

Internally, the hexadecimal integers are
converted to a signed, 32-bit binary number.

Then corresponding bits are compared.

Operator with syntax

Description

If Base mode = HEX:

If Base mode = BIN:

Advertising