HP Support

hp-contact-secondary-navigation

Actions
Loading...

hp-share-print-widget

Actions
Loading...

hp-concentra-wrapper

Actions
Loading...

Binary, Octal, and Hexadecimal Values

Introduction
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.
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 2210 to binary
Press MODE, then OCT
OCT 26.
Conversion of 2210 to octal
Press 513, MODE, then BIN
E BIN 0.
Conversion of 51310 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 7FFFFFFF16 to decimal
Press 123456, MODE, then OCT
OCT 361100
Conversion of 12345610 to octal
Press MODE, BIN, 1100110, MODE, then DEC
102.
Conversion of 11001102 to decimal
Binary/octal/decimal/hexadecimal calculations
Keys
Display
Description
Press MODE, BIN, 1011, [+], 1101, then [=]
BIN 11000.
101112 + 110102 =1100012
Press MODE, OCT, 123, x MODE, HEX, ABC, [=] Press MODE, then DEC
HEX 37AF4. 228084.
1238 x ABC16 = 37AF416 =22808410
Press MODE, HEX, 1F2D, [-], MODE, DEC, 100, Press MODE, HEX, then [=]
7781.
HEX 1E C9.
1F2D16 -10010 =788110 =1EC916
Press MODE, OCT, 7654, divide, MODE, DEC, 12, [=] Press MODE, then OCT
334.3333333 OCT 516
76548 (divide) 1210 = 334.33…10 = 5168
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) 1a16=39016 = 91216
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
BC16x(1410+6910 =1560410 =3CF416

hp-online-communities

Actions
Loading...
Consumer Community

Consumer Community

Join the conversation! Find Solutions, ask questions, and share advice with other HP product owners. Visit now >

Enterprise Business Community

Enterprise Business Community

Join HP's community of business and IT professionals to help solve problems, exchange ideas, and learn best practices from your peers. Worldwide discussions in English. Visit now >


Contact HP

Contact HP

Let HP help you find the answer or identify a service location. Contact us >

Country: United States