what are the binary equivalent of the decimal numbers 7,20,31,64
Answers
Answered by
6
To convert decimal numbers to binary, we divide the number by 2 and take the next quotient for the next iteration.
a.
7 is 111 in binary.
⇒
⇒
⇒
So,
The binary value of 7 is 111.
b.
20 is 10100 in binary.
⇒
⇒
⇒
⇒
⇒
Taking the remainders in reverse order, we get the binary value of 20 as 10100.
c.
31 is 11111 in binary.
⇒
⇒
⇒
⇒
⇒
So, the binary value of 31 is 11111.
d.
64 is 1000000 in binary.
⇒
⇒
⇒
⇒
⇒
⇒
⇒
Taking the remainders in inverse order, we get the binary value of 64 as 1000000.
Similar questions