20 in Decimal to Binary
In this article, we will learn how to convert the decimal number 20 to its binary equivalent.
What is Binary?
Binary is a numeral system that uses only two digits: 0 and 1. It is the basis for all computer programming and is used to represent information in computers.
How to Convert Decimal to Binary?
To convert a decimal number to binary, we can use the following steps:
- Divide the decimal number by 2.
- Get the remainder.
- Repeat steps 1 and 2 until the quotient is 0.
- Write down the remainders in reverse order.
Converting 20 to Binary
Let's apply the above steps to convert 20 to binary:
Step 1: Divide 20 by 2 20 ÷ 2 = 10 with a remainder of 0
Step 2: Divide 10 by 2 10 ÷ 2 = 5 with a remainder of 0
Step 3: Divide 5 by 2 5 ÷ 2 = 2 with a remainder of 1
Step 4: Divide 2 by 2 2 ÷ 2 = 1 with a remainder of 0
Step 5: Divide 1 by 2 1 ÷ 2 = 0 with a remainder of 1
The remainders in reverse order are: 10100
Therefore, the binary equivalent of 20 is: 10100
In conclusion, we have successfully converted the decimal number 20 to its binary equivalent, which is 10100.