Computer Science, asked by pavithra24, 1 year ago

convert (31)10 into its equivalent hexadecimal number.
PLEASE SEND QUICKLY...​

Answers

Answered by manosrijanasrin
2

Answer: (31)(base 10)=(1F)16

Explanation: To convert a decimal integer into any other number system, you just need to keep on dividing the number, and the successive quotients, by the base value of the number system until the quotient becomes 0. Then, you simply collect the remainders in reverse order, i.e., the last remainder of your division occurs first.

Take the hexadecimal numbers system for example. It has a base value of 16. In this question, we need to convert 31, a decimal integer, to its hexadecimal equivalent.

On dividing 31 by 16, we get 1 as quotient and 15 as the remainder. Divide the quotient, 1, by 16. You'll get 0 as quotient and 1 as the remainder. You don't need to divide the quotient anymore since you got 0 and that's your stop.

Now, collect the remainders in reverse order. The last remainder comes first, then comes the previous one, and so on. So, we have {1,15}. 15 is represented by F in the hexadecimal system. We obtain the required number, (1F)(base 16).

Note that a different process is followed for real numbers, i.e., numbers with a decimal point.

Similar questions