Computer Science, asked by AnubhabChakraborty, 8 months ago

In computer how to convert Decimal numbers to Octal numbers explain with examples. Also explain by sending attachments like in photo or pdf file. Like explained in the photo.​

Attachments:

Answers

Answered by akm26381
0

Answer:example

Explanation:

First convert it into binary or hexadecimal number,

= (98)10

= (1x26+1x25+0x24+0x23+0x22+1x21+0x20)10  or   (6x161+2x160)10

Because base of binary and hexadecimal are 2 and 16 respectively.

= (1100010)2   or   (62)16

Then convert each digit of hexadecimal number into 4 bit of binary number whereas convert each group of 3 bits from least significant in binary number.

= (001 100 010)2   or   (0110 0010)2

= (001 100 010)2

= (1 4 2)8

= (142)8

Divide the decimal number by the largest power of eight.

= 136 / 64 = 2.125

So 2 will be first digit or most significant bit (MSB) of octal number.

Now, remainder will be,

= 136 - 642 = 8

Now, divide this remainder by the next power of 8.

= 8 / 8 =1.0

So 1 will be next digit or second most significant bit (MSB) of octal number.

Now, remainder will be,

= 8 - 81 = 0

Now, divide this remainder by the next power of 8.

= 0 / 8 = 0

So, 0 will be last (least significant) bit of required octal number.

Therefore, 210 will be equivalent octal number of given decimal number 136.

Similar questions