Current location - Training Enrollment Network - Mathematics courses - How to convert decimal into hexadecimal?
How to convert decimal into hexadecimal?
Use short division. Use 16 as the divisor, remove the decimals to be converted, write down the quotient and remainder, then use 16 as the divisor, remove the quotient of the previous step, write down the quotient and remainder, ... until the quotient is zero.

Arrange the remainder obtained in each step in reverse order, which is the converted base of 16.

For example:

Convert 256 to 16.

256÷ 16= 16……0,

16÷ 16= 1……0,

1÷ 16=0…… 1,

Therefore, the conversion from 256 to 16 is 100.

Extended data:

decimal system

Humans naturally chose the decimal system.

Because of the characteristics of human anatomy, both hands have ten fingers, so the decimal system is the most commonly used in the carry system adopted by human beings spontaneously. The idiom "there are only a handful" describes a simple counting scene in a sense. When primitive humans need to count, the first thing they think of is the index with their hands.

Decimal coding is almost the numerical value itself.

Numerical value itself is a mathematical abstract concept. After a long period of evolution, integration, selection and elimination, the decimal counting method with simple system and comprehensive functions has become the mainstream counting method in human culture. After the training of basic education, most people have mastered the decimal counting method since childhood.

There are ten apples on the plate. By counting apples, we abstract the value of "ten" and store and display it in the form of decimal code "10" in our minds, but not in other forms. From this point of view, decimal coding is almost the value itself. The base of decimal system is 10, the number consists of 0-9, and the counting rule is one tenth.