How to translate decimal number

How to translate decimal number

Articles Hits: 99

There are several numeral systems of numbers. So, the habitual decimal number can be presented, for example, in the form of search of binary symbols – it will be binary coding of number. In an octal system with the basis the 8th registers a set of figures from 0 to 7. But the hexadecimal numeral system, or a system with the basis 16 has the greatest distribution. For record of number undertake figure from 0 to 9 and a letter of Latin from A to F here. It is possible to transfer decimal number to its hexadecimal form by means of the table of correspondences. And the number more than 15 is translated by simple decomposition on degrees, repetition of operation of division into the basis 16.

Instruction

1. Write down initial decimal number. If the number is less or equally 15, then for its record in a hexadecimal form use the table of correspondences. Figures are more senior 9 are replaced with alphabetic reference, so 10 corresponds to letter A with the basis 16, and 15 – letter F.

2. If number more than 15, for transfer to hexadecimal representation divide it into 16. Allocate a remainder of division.

3. Check received private whether it is not less 16. If private it is more or equally 16, divide private also into 16. Allocate the division rest. You divide the received results on 16 so many times how many it will be necessary for receiving private less than 16. If private it turned out less than 16, allocate it too as the rest.

4. Write down the received remains, since the last number. Over 9 replace the rest with number according to the table of correspondences with a letter of a hexadecimal system. The received record is hexadecimal representation of initial decimal number.

Author: «MirrorInfo» Dream Team

Print