(120)10 To Binary

3 min read Jul 03, 2024
(120)10 To Binary

Converting (120)10 to Binary

What is Binary?

Binary is a numbering system that uses only two digits: 0 and 1. It is the basis of computer programming and is used to represent information in computers.

What is Decimal?

Decimal, on the other hand, is a numbering system that uses 10 digits: 0 through 9. It is the numbering system that we use in our everyday lives.

Converting Decimal to Binary

To convert a decimal number to binary, we need to divide the number by 2 and keep track of the remainder. If the remainder is 0, we write down a 0. If the remainder is 1, we write down a 1. We continue this process until the quotient is 0.

Converting (120)10 to Binary

Let's convert (120)10 to binary:

  • Divide 120 by 2: 120 ÷ 2 = 60 with a remainder of 0
  • Divide 60 by 2: 60 ÷ 2 = 30 with a remainder of 0
  • Divide 30 by 2: 30 ÷ 2 = 15 with a remainder of 0
  • Divide 15 by 2: 15 ÷ 2 = 7 with a remainder of 1
  • Divide 7 by 2: 7 ÷ 2 = 3 with a remainder of 1
  • Divide 3 by 2: 3 ÷ 2 = 1 with a remainder of 1
  • Divide 1 by 2: 1 ÷ 2 = 0 with a remainder of 1

Now, let's write down the remainders in reverse order:

1111000

Therefore, (120)10 is equal to (1111000)2 in binary.

Conclusion

In this article, we learned how to convert a decimal number to binary. We used the division method to convert (120)10 to binary and obtained the result (1111000)2. This is an important concept in computer science and is used in many applications.

Related Post