beautypg.com

To find the negative of a binary integer, To find the negative of a binary integer -3, Binary integer arithmetic – HP 49g Graphing Calculator User Manual

Page 80

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

Binary integers are displayed on the HP 49G

with a space after the # sign. You do not need
to enter a space when creating a binary

integer.

If you specify a base other than the current
base setting, the HP 49G converts the binary
integer you entered to an integer to the base of the current setting. If you
want to see the binary integer you entered, press 0 @D).

For example, if your cmTent base setting is hexadecimal and you enter
# 1101b, the calculator displays your entry as # Dh. To see your entry,

press

0

(CMP). Your entiy is at the top of the list of last four executed

commands.

Binary integer arithmetic

To add, subtract, multiply, or divide two binary integers

1. Enter the first binary integer.

2. Press the key for the operation you want to perfonn: ©

0 0

or

0.

3. Enter the second binary integer.

4. Press dH).

In RPN mode: follow steps 1, 3, and 2.

The two binaiy integers do not have to be to the same base.

The answer is expressed in the cuiTent base setting, and the two

arguments are converted to that setting.

Note that any remainder from a division is lost and the answer is

tmncated to be an integer.

To find the negative of a binary integer

1. Press

(C0

NEG.

2. Enter the binary integer.

3. Press (H

r

).

In RPN mode:

follow steps 2 and 1.

The negative of a binary number is its two’s complement (all bits inverted

and 1 added).

Number bases

Page 8-3