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
8 | Quotient | Remainder |
---|---|---|
8 | 19 | 3 (LSB) |
8 | 2 | 2 (MSB) |
0 |
Therefore, (19)10 = (23)8
(b) 122
8 | Quotient | Remainder |
---|---|---|
8 | 122 | 2 (LSB) |
8 | 15 | 7 |
8 | 1 | 1 (MSB) |
0 |
Therefore, (122)10 = (172)8
(c) 161
8 | Quotient | Remainder |
---|---|---|
8 | 161 | 1 (LSB) |
8 | 20 | 4 |
8 | 2 | 2 (MSB) |
0 |
Therefore, (161)10 = (241)8
(d) 0.675
Multiply | = | Resultant | Carry |
---|---|---|---|
0.675 x 8 | = | 0.4 | 5 |
0.4 x 8 | = | 0.2 | 3 |
0.2 x 8 | = | 0.6 | 1 |
0.6 x 8 | = | 0.8 | 4 |
0.8 x 8 | = | 0.4 | 6 |
Therefore, (0.675)10 = (0.53146)8
Answered By
18 Likes
Related Questions
Convert the following hexadecimal numbers to binary:
(a) A6
(b) A07
(c) 7AB4
Convert the following decimal numbers to binary:
(a) 19
(b) 122
(c) 161
(d) 0.675
Convert the following hexadecimal numbers to binary:
(a) 23D
(b) BC9
(c) 9BC8
Convert the following decimal numbers to binary:
(a) 23
(b) 100
(c) 145
(d) 0.25