Computer Science, asked by pranavpratapsingh66, 10 months ago

how to convert decimal into octal number system please answer who answer answer will mark as winners don't give me the answer unusually ​

Answers

Answered by harshalgidwani
1

Answer:

Convert Decimal to Octal with Steps

Follow the steps given below to learn the decimal to octal conversion:

Write the given decimal number

If the given decimal number is less than 8 the octal number is the same.

If the decimal number is greater than 7 then divide the number by 8.

Note the remainder we get after division

Repeat step 3 and 4 with the quotient till it is less than 8

Now, write the remainders in reverse order(bottom to top)

The resultant is the equivalent octal number to the given decimal number.

Explanation:

ecimal to Octal Examples

Example 1: Convert (127)10 to Octal.

Solution: Divide 127 by 8

127 ÷ 8= 15(Quotient) and (7)Remainder

Divide 15 by 8 again.

15 ÷ 8 = 1(Quotient) and (7) Remainder

Divide 1 by 8, we get;

1 ÷ 8 = 0(Quotient) and (1) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Hence, (127)10 = (177)8

Example 2: Convert 5210 to octal.

Solution: Divide 52 by 8

52 ÷ 8 = 6(Quotient) and (4)Remainder

Divide 6 by 8 again.

6 ÷ 8 = 0(Quotient) and (6) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Hence, (52)10 = (64)8

Example 3: Convert 10010 to octal.

Solution: Divide 100 by 8

100 ÷ 8= 12(Quotient) and (4)Remainder

Divide 12 by 8 again.

12 ÷ 8 = 1(Quotient) and (4) Remainder

Divide 1 by 8, we get;

1 ÷ 8 = 0(Quotient) and (1) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Attachments:
Answered by vishvraj0611
1

Answer:

Convert Decimal to Octal with Steps

Follow the steps given below to learn the decimal to octal conversion:

Write the given decimal number

If the given decimal number is less than 8 the octal number is the same.

If the decimal number is greater than 7 then divide the number by 8.

Note the remainder we get after division

Repeat step 3 and 4 with the quotient till it is less than 8

Now, write the remainders in reverse order(bottom to top)

The resultant is the equivalent octal number to the given decimal number.

Explanation:

Decimal to Octal Examples

Example 1: Convert (127)10 to Octal.

Solution: Divide 127 by 8

127 ÷ 8= 15(Quotient) and (7)Remainder

Divide 15 by 8 again.

15 ÷ 8 = 1(Quotient) and (7) Remainder

Divide 1 by 8, we get;

1 ÷ 8 = 0(Quotient) and (1) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Hence, (127)10 = (177)8

Example 2: Convert 5210 to octal.

Solution: Divide 52 by 8

52 ÷ 8 = 6(Quotient) and (4)Remainder

Divide 6 by 8 again.

6 ÷ 8 = 0(Quotient) and (6) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Hence, (52)10 = (64)8

Example 3: Convert 10010 to octal.

Solution: Divide 100 by 8

100 ÷ 8= 12(Quotient) and (4)Remainder

Divide 12 by 8 again.

12 ÷ 8 = 1(Quotient) and (4) Remainder

Divide 1 by 8, we get;

1 ÷ 8 = 0(Quotient) and (1) Remainder

Since the quotient is zero now, no more division can be done. So by taking the remainders in reverse order, we get the equivalent octal number.

Similar questions