There are several numbers of number systems. Thus, the familiar decimal numbers can be represented, for example, in the form of binary symbols iterate? this will be the number of binary encoding.

In octal base 8 number written set of numbers from 0 to 7. But the most widespread is the hexadecimal number system, or a system with a base of 16.

To record the number here come from the numbers 0 through 9 and the letters of the Latin alphabet from A to F. Transfer decimal number to its hexadecimal form, you can use look-up table.

A number greater than 15 is translated by a simple expansion in powers, repeated division by the base 16.

instructions

1

Record the original decimal **number**. If **number** less than or equal to 15, then to record it inhexadecimal, use the appropriate table. The figures above are replaced by 9 letter designation, so 10 is the letter A with the base 16, and 15? the letter F.

2

If **number** more than 15, to be translated into hexadecimal representation divide it by 16. Scroll to the remainder of the division.

3

Check the resulting quotient, at least if it is 16. If the quotient is greater than or equal to 16, divide the quotient as the 16. Highlight the rest of the division. Share the results obtained on the 16 as many times as it is necessary for the private less than 16. If the quotient turned out less than 16 select it, too, as the remainder.

4

Record received the remains from the last number. residue **number**m over 9 Replace the conformity table of the letter hexadecimal system. The resulting record is a hexadecimal representation of the original decimal number.