255 decimal to binary conversion
( computer science class 11 python Sumita Arora )
Answers
Answered by
3
(255)10 = (11111111)2
Step by step solution
Step 1: Divide (255)10 successively by 2 until the quotient is 0:
255/2 = 127, remainder is 1
127/2 = 63, remainder is 1
63/2 = 31, remainder is 1
31/2 = 15, remainder is 1
15/2 = 7, remainder is 1
7/2 = 3, remainder is 1
3/2 = 1, remainder is 1
1/2 = 0, remainder is 1
Step 2: Read from the bottom (MSB) to top (LSB) as 11111111.
So, 11111111 is the binary equivalent of decimal number 255 (Answer).
Answered by
3
Explanation:
In binary, it's all 1's and 0's. So, the step before 256 is all 1's. Therefore, 255 in binary is 11111111
Similar questions