Download Print this page

HP 9g Manual page 3

Base conversions and arithmetic
Hide thumbs Also See for 9g:

Advertisement

hp calculators
HP 9g Base Conversions and Arithmetic
Practice working with numbers in different bases
Example 1: Enter the hexadecimal number F9014 and convert it to decimal.
Solution:
First let's set the calculator to decimal mode by pressing , select DEC with the arrow keys and finally
the =key. You can key numbers in any base into the entry line, but when their base is not the same as
the active base (which is displayed as a small annunciator in the display) the number should be prefixed
with a small letter identifying its own base. In this example, we need to specify that F9014 is a hex number:
, ...†=j9014
hF9014 is now in the entry line. Note that hex digits A through F are keyed in by pressing the keys C,
D, E, H, I and J respectively. The ~ key is not necessary. Now press = and the
number will appear converted into the decimal.
Answer:
1019924
Example 2: Convert the number in example 1 to octal and binary.
Solution:
Once a number is displayed in the result line, the ,key behaves differently. It's now an easy way of
converting numbers between the four bases. Press it now and you will see the menu "D H B O" The
underlined letter corresponds to the base in which the displayed number is. Press † and the number is
now F9014 – it is being now displayed in hex base. Press † again to view it in binary. The number
displayed is 00010100, but notice the small "1" that appears next to the base annunciator. This means that
what is displayed is not the complete number because it's too big to fit in the result line. To view the other
digits press Ü (on the . key, pressing ~ is not necessary) up to four times: the digits that appear
are 10010000 in the second screen (2b), 1111 in the third (3b) and 0 in the fourth (4b), which means that
1019924 in binary base is 11111001000000010100. Let's now convert this number to octal. This is as
simple as pressing †.
There are two ways to quit this menu: by pressing either : or =;the former cancels the currently
selected base (octal) and returns to the base that was set before starting this menu (decimal). The latter
makes the current base the active one. Let's now press =.
Answer:
11111001000000010100 and 3710024.
Example 3: Add 7F6 base 16 to 1011001 base 2 and display the result in base 8.
Solution:
Since base 8 has already been set in the previous example, let's start keying in the calculation. Remember
that the hex number and the binary number will have to follow a small h and a small b respectively. For the
blinking cursor to appear press :, and then
,...†=7j6+,„=1011001=
Answer:
4117 in base 8.
Example 4: Multiply the previous answer by ABC in base 10. Express the result in base 10.
hp calculators
- 3 -
HP 9g Base Conversions and Arithmetic - Version 1.0

Advertisement

loading