KnowledgeBoat Logo

Computer Science

Convert the following decimal numbers to octal:

(a) 19

(b) 122

(c) 161

(d) 0.675

Number System

47 Likes

Answer

(a) 19

8QuotientRemainder
8193 (LSB)
822 (MSB)
 0 

Therefore, (19)10 = (23)8

(b) 122

8QuotientRemainder
81222 (LSB)
8157
811 (MSB)
 0 

Therefore, (122)10 = (172)8

(c) 161

8QuotientRemainder
81611 (LSB)
8204
822 (MSB)
 0 

Therefore, (161)10 = (241)8

(d) 0.675

Multiply=ResultantCarry
0.675 x 8=0.45
0.4 x 8=0.23
0.2 x 8=0.61
0.6 x 8=0.84
0.8 x 8=0.46

Therefore, (0.675)10 = (0.53146)8

Answered By

18 Likes


Related Questions