Maths the following number system with its binary a. 10 Decimal b. 8 H...
Decimal to Binary, Hexadecimal, and Octal Conversion:
Decimal number system is a base 10 number system that uses digits from 0 to 9. In this system, each digit's place value is a power of 10. To convert a decimal number to binary, hexadecimal, and octal, we need to follow specific rules for each number system.
Decimal to Binary:
- To convert a decimal number to binary, we repeatedly divide the decimal number by 2 and note down the remainders.
- The remainders, read in reverse order, give us the binary equivalent of the decimal number.
- For example, to convert decimal 10 to binary:
- 10 ÷ 2 = 5 remainder 0
- 5 ÷ 2 = 2 remainder 1
- 2 ÷ 2 = 1 remainder 0
- 1 ÷ 2 = 0 remainder 1
- Reading remainders in reverse order: 1010
Decimal to Hexadecimal:
- To convert a decimal number to hexadecimal, we repeatedly divide the decimal number by 16 and note down the remainders.
- The remainders, converted to their hexadecimal equivalents, give us the hexadecimal equivalent of the decimal number.
- For example, to convert decimal 10 to hexadecimal:
- 10 ÷ 16 = 0 remainder A (A represents 10 in hexadecimal)
Decimal to Octal:
- To convert a decimal number to octal, we repeatedly divide the decimal number by 8 and note down the remainders.
- The remainders, read in reverse order, give us the octal equivalent of the decimal number.
- For example, to convert decimal 10 to octal:
- 10 ÷ 8 = 1 remainder 2
- 1 ÷ 8 = 0 remainder 1
- Reading remainders in reverse order: 12
In this way, we can convert a decimal number to binary, hexadecimal, and octal by following specific conversion rules for each number system.
To make sure you are not studying endlessly, EduRev has designed UPSC study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in UPSC.