1. Divide number by 2, record the remainder. Repeat until you reach 0.
2. Re-write the remainders from bottom to top.
3. Check
TEST -> ANS -> R
57/2 -> 28 -> 1
28/2 -> 14 -> 0
14/2 -> 07 -> 0
07/2 -> 03 -> 1
03/2 -> 01 -> 1
01/2 -> 00 -> 1
57 dec = 111001 bin
Check:
[1] [1] [1] [0] [0] [1]
(1*25)+(1*24)+(1*23)+(0*22)+(0*21) +(1*20)
32 + 16 + 8 + 0 + 0 + 1
= 57
Chat with our AI personalities
Oh honey, converting decimal 57 to binary is as easy as stealing candy from a baby. You just divide 57 by 2, write down the remainder, and keep dividing until you reach 0. So, the binary representation of 57 is 111001. Easy peasy lemon squeezy!
000010 in binary is 2 in decimal.
101011
101011
Converted from decimal to binary, 123789 is equal to 11110001110001101.