KnowledgeBoat Logo

Computer Science

Convert the following decimal numbers to binary:

(a) 23

(b) 100

(c) 145

(d) 0.25

Number System

38 Likes

Answer

(a) 23

2QuotientRemainder
2231 (LSB)
2111
251
220
211 (MSB)
 0 

Therefore, (23)10 = (10111)2

(b) 100

2QuotientRemainder
21000 (LSB)
2500
2251
2120
260
231
211 (MSB)
 0 

Therefore, (100)10 = (1100100)2

(c) 145

2QuotientRemainder
21451 (LSB)
2720
2360
2180
291
240
220
211 (MSB)
 0 

Therefore, (145)10 = (10010001)2

(d) 0.25

Multiply=ResultantCarry
0.25 x 2=0.50
0.5 x 2=01

Therefore, (0.25)10 = (0.01)2

Answered By

9 Likes


Related Questions