Computer Science, asked by varshithrs432, 11 months ago

convert from decimal to octal

1). 0.3125

Answers

Answered by llBestFriendsll
0

Answer:

· Converting 0.3125 of Decimal to Octal number system. Have translated: 0.3125 of Decimal numeration system to Octal number system. You enter the number: 0.312510 in Decimal number system and want to translate it into Octal. ·

Answered by anjalin
1

The octal conversation if the given decimal number is 0.3125_{10} = 0.24_{8}

Explanation:

The given decimal number has 0 as integer part and 0.3125 as fractional part.

We first convert the given integer part 0 into octal form.

Step 1

----------------

Dividend = 0

As, dividend is less than 8 so, we will stop and copy all it as the only remainder.

So, 1st remainder = 0

To find the octal value we have to scan the remainder from bottom.

So, 0_{10} = 0_{8}

Now we will convert the fractional part .3125 into octal form.

Octal of 0.3125

Step 1

We multiply 0.3125 by 8 and take the integer part

0.3125 * 8 = 2.5

Integer part = 2

Fractional part = 0.5

As, the fractional part is not equal to the 0 so we copy it to next step.

Step 2

We multiply 0.5 by 8 and take the integer part

0.5 x 8 = 4.0

Integer part = 4

Fractional part = 0

Now the fractional part value is 0 so, we stop here.

To find octal value we have to scan the integer part from top

So, 0.3125_{10} = 0.24_{8}

Now, to get the octal value of the decimal number 0.015625 we have to merge the two results.

0.3125_{10} = 0.24_{8}

Hence, 0.3125_{10} = 0.24_{8}

Similar questions