3

How to Convert 10 in Binary?

 1 month ago
source link: https://www.geeksforgeeks.org/how-to-convert-10-in-binary/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to Convert 10 in Binary?

Last Updated : 26 Mar, 2024

To convert 10 into binary form, repeatedly divide 10 by 2 and note the remainder in reverse order.

To convert 10 to binary:

Divide 10 by 2: 10 ÷ 2 = 5 (remainder 0)

Divide 5 by 2: 5 ÷ 2 = 2 (remainder 1)

Divide 2 by 2: 2 ÷ 2 = 1 (remainder 0)

Divide 1 by 2: 1 ÷ 2 = 0 (remainder 1)

Therefore, the binary representation of decimal 10 is 1010.

Hexadecimal to Binary Steps

Divide the decimal number by 2.

Record the remainder (it will be either 0 or 1) as the least significant bit (LSB).

Divide the quotient obtained in step 1 by 2.

Again, record the remainder as the next bit.

Repeat steps 3-4 until the quotient is 0.

Here's a complete roadmap for you to become a developer: Learn DSA -> Master Frontend/Backend/Full Stack -> Build Projects -> Keep Applying to Jobs

And why go anywhere else when our DSA to Development: Coding Guide helps you do this in a single program! Apply now to our DSA to Development Program and our counsellors will connect with you for further guidance & support.

Like Article
Suggest improvement
Share your thoughts in the comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK