Performing math operations with hex or bin numbers, Setting the base mode for displayed results, Dividing when base = hex or bin – Texas Instruments PLUS TI-89 User Manual

Page 363: Size limitations when base = hex or bin

Advertising
background image

346 Chapter 20: Number Bases

20NUMBAS.DOC TI-89/TI-92 Plus: Number Bases (English) Susan Gullord Revised: 02/23/01 1:17 PM Printed: 02/23/01 2:19 PM Page 346 of 6

1. Press 3 „ to display

Page 2 of the

MODE

screen.

2. Scroll to the

Base

mode,

press B, and select the
applicable setting.

3. Press ¸ to close the

MODE

screen.

The

Base

mode controls the

displayed format of integer
results only.

Fractional and floating-point
results are always shown in
decimal form.

If Base mode = HEX:

When

Base

=

HEX

or

BIN

, a

division result is displayed in
hexadecimal or binary form
only if the result is an integer.

To ensure that division always
produces an integer, use

intDiv()

instead of e.

If Base mode = HEX:

When

Base

=

HEX

or

BIN

, an integer result is stored internally as a

signed, 32-bit binary number, which uses the range (shown in
hexadecimal and decimal):

If a result’s magnitude is too large to be stored in a signed, 32-bit
binary form, a symmetric modulo operation brings the result into the
range. Any number greater than

0h7FFFFFFF

is affected. For

example,

0h80000000

through

0hFFFFFFFF

become negative

numbers.

Performing Math Operations with Hex or Bin Numbers

For any operation that uses an integer number, you can enter
a hexadecimal or binary number. Results are displayed
according to the Base mode. However, results are restricted to
certain size limits when Base = HEX or BIN.

Setting the Base
Mode for Displayed
Results

Note: The Base mode
affects output only. You
must always use the 0h or
0b

prefix to enter a hex or

binary number.

Dividing When
Base = HEX or BIN

Size Limitations
When Base = HEX
or BIN

Press

¥

¸

to display the

result in

APPROXIMATE

form.

0h prefix in result

identifies the base.

0h80000000

ë

2,147,483,648

0h7FFFFFFF

2,147,483,647

0h0

0

0h1

1

0hFFFFFFFF

л

1

Advertising
This manual is related to the following products: