This document shows how to use the HP 6s calculator to work with binary, octal, and hexadecimal numbers. Numbers can be converted from one base to another. Calculations can be done with numbers within each number base.
hpsupporthead
Actions ${title}
Loading...
HP Support
hpcontactsecondarynavigation
Actions ${title}
Loading...
hpherosupportsearch
Actions ${title}
Loading...
hpshareprintwidget
Actions ${title}
Loading...
hpconcentrawrapper
Actions ${title}
Loading...
Binary, Octal, and Hexadecimal Values
Calculator symbol key
The procedures in this document use the following text to represent symbol keys:
Key

Description

Text representation


Divide

divide

Using MODE to switch number bases
Use the MODE key to set the number base. When bases other than 10 are used, enter only numbers valid for the base. For example, in binary mode only 1 and 0 can be entered.
MODE, HEX sets the mode to the hexadecimal. In hexadecimal mode, A to F keys are enabled.
note:
b and d in hexadecimal mode are shown in lower case to distinguish them from numbers.
MODE, OCT sets the mode to octal.
MODE, BIN sets the mode to binary.
MODE, DEC sets the mode to decimal.
note:
When using a number base other than 10, any fractional part is truncated.
Binary/octal/decimal/hexadecimal conversions
Keys

Display

Description

Press 22, MODE, then BIN

BIN 10110

Conversion of 22_{10} to binary

Press MODE, then OCT

OCT 26.

Conversion of 22_{10} to octal

Press 513, MODE, then BIN

E BIN 0.

Conversion of 513_{10} to binary

Conversion to binary mode generates an error if the result is greater than 10 digits.
Keys

Display

Description

Press MODE, HEX, 7FFFFFFF, MODE, then DEC

2147483647

Conversion of 7FFFFFFF_{16} to decimal

Press 123456, MODE, then OCT

OCT 361100

Conversion of 123456_{10} to octal

Press MODE, BIN, 1100110, MODE, then DEC

102.

Conversion of 1100110_{2} to decimal

Binary/octal/decimal/hexadecimal calculations
Keys

Display

Description

Press MODE, BIN, 1011, [+], 1101, then [=]

BIN 11000.

10111_{2} + 11010_{2} =110001_{2}

Press MODE, OCT, 123, x MODE, HEX, ABC, [=] Press MODE, then DEC

HEX 37AF4. 228084.

123_{8} x ABC_{16} = 37AF4_{16} =228084_{10}

Press MODE, HEX, 1F2D, [], MODE, DEC, 100, Press MODE, HEX, then [=]

7781.
HEX 1E C9.

1F2D_{16} 100_{10} =7881_{10} =1EC9_{16}

Press MODE, OCT, 7654, divide, MODE, DEC, 12, [=] Press MODE, then OCT

334.3333333 OCT 516

76548 (divide) 12_{10} = 334.33…_{10} = 516_{8}

Fractional parts of calculation are truncated.
Keys

Display

Description

Press MODE, BIN, 110, [+], 456, x, MODE, DEC, 78, divide, MODE, HEX, 1A, [=] Press MODE, then DEC

HEX 390. 912.

1102=4568x78 (divide) 1a_{16}=390_{16} = 912_{16}

Multiplication and division are given priority over addition and subtraction in mixed calculations.
Keys

Display

Description

Press MODE, HEX, BC, x, (, MODE, DEC, 14, [+], 69, ), [=], Press MODE, then HEX

15604. HEX 3CF4

BC_{16}x(1410+69_{10} =15604_{10} =3CF4_{16}

hpfeedbackinput
Actions ${title}
Loading...
hponlinecommunities
Actions ${title}
Loading...
hpcontactus
Actions ${title}
Loading...
hpfeedbackbanner
Actions ${title}
Loading...
hpcountrylocator
Actions ${title}
Loading...
Country:
United States