Computer Science, asked by jagssharma23, 2 months ago

5. Conversion of Decimal number system to Octal number is done using
repeated division method.
Answer the following:​

Answers

Answered by deepanshu200518
2

Answer:

To convert decimal to octal, we have to learn about both the number system first. A number with base 8 is the octal number and a number with base 10 is the decimal number. Here we will convert a decimal number to an equivalent octal number. It is same as converting any decimal number to binary or decimal to hexadecimal.

In decimal to binary, we divide the number by 2, in decimal to hexadecimal we divide the number by 16. In case of decimal to octal, we divide the number by 8 and write the remainders in the reverse order to get the equivalent octal number.

Decimal Number: All the numbers to the base ten are called as decimal numbers. These are the commonly used numbers, which are 0-9. It has both integer part and the decimal part. It is separated by a decimal point (.). Numbers on the left of the decimal are integers and numbers on the right of the decimal is the decimal part. Example: (236.89)10, (54.2)10, etc.

Octal number: These are the numbers with base 8. If x is a number then the octal number is denoted as x8. It contains digits from 0 to 7. Example: (212)8, (121)8, etc.

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:

Similar questions