(125)10 To Binary

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

Converting Decimal to Binary: (125)10 to Binary

In this article, we will learn how to convert a decimal number to binary. Specifically, we will convert the decimal number 125 to its binary equivalent.

What is Binary?

Binary is a number system that uses only two digits: 0 and 1. It is the basis for all computer programming and is used to represent data, instructions, and information in computers.

What is Decimal?

Decimal is a number system that uses 10 digits: 0 through 9. It is the most commonly used number system in everyday life.

Converting Decimal to Binary

To convert a decimal number to binary, we can use the following steps:

Step 1: Divide the decimal number by 2

Divide the decimal number 125 by 2:

125 ÷ 2 = 62 with a remainder of 1

Step 2: Divide the result by 2 again

Divide the result 62 by 2:

62 ÷ 2 = 31 with a remainder of 0

Step 3: Divide the result by 2 again

Divide the result 31 by 2:

31 ÷ 2 = 15 with a remainder of 1

Step 4: Divide the result by 2 again

Divide the result 15 by 2:

15 ÷ 2 = 7 with a remainder of 1

Step 5: Divide the result by 2 again

Divide the result 7 by 2:

7 ÷ 2 = 3 with a remainder of 1

Step 6: Divide the result by 2 again

Divide the result 3 by 2:

3 ÷ 2 = 1 with a remainder of 1

Step 7: Divide the result by 2 again

Divide the result 1 by 2:

1 ÷ 2 = 0 with a remainder of 1

Reading the Remainders

Now, we can read the remainders in reverse order to get the binary equivalent of the decimal number 125:

1111101

Conclusion

Therefore, the binary equivalent of the decimal number 125 is 1111101. This conversion is an essential step in computer programming and is used in various applications such as data storage, networking, and cryptography.

Related Post


Featured Posts