(52)10 = (1 1 0 1 0 0)2<-----------incorrect
52 = (00110110)<-------correct
Because binary is written in bytes and a byte is comprised of 8 bits, we have 8 spaces. binary has a base of 2 so each place is 2 raised to a power starting from 0 to 7 from right to left. That is how you get the numbers below.
Spaces from left to right are 128 64 32 16 8 4 2 1
Does 128 fit inside of 52? no, so it gets a zero in on the first place from the left and so on.
64 into 52? no, so it is 0.
32 into 52? Yes, so it is a 1 and now you subtract, 52 minus 32 = 20
16 into 20? Yes, so it get a 1 and so on.
Hope this helps.
Chat with our AI personalities