wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Convert the given from decimal to binary : 158


Open in App
Solution

Given number is 158

To convert a decimal number to binary, we divide it successively by 2, until the quotient is0.

1582=79, the remainder is 0

792=39, the remainder is 1

392=19, the remainder is 1

192=9, the remainder is 1

92=4, the remainder is 1

42=2, the remainder is 0

22=1, the remainder is 0

12=0, the remainder is 1

Now read from the bottom (MSB) to top (LSB) as 10011110

So 15810=100111102


flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Average
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon