56 is 0011 1000
To convert between bases divide the number by the new base repeatedly until the whole number quotient is zero, noting the remainders in reverse order:
56 ÷ 2 = 28 r 0
28 ÷ 2 = 14 r 0
14 ÷ 2 = 7 r 0
7 ÷ 2 = 3 r 1
3 ÷ 2 = 1 r 1
1 ÷ 2 = 0 r 1
→ 56 decimal in binary is 111000 (or 0011 1000 in 8 bits of a byte).
Chat with our AI personalities