Convert decimal to octal
Convert decimal to octal
This calculator quickly converts decimal numbers to octal numbers!
Conversion between octal and decimal
(1) Convert octal to decimal
Method: Use the weighted addition method, that is, multiply the number on each octal position by the position weight, and then add the sum to get the decimal number.
Example: ①Convert the octal number 67.35 to decimal
(2) Convert decimal to octal
There are two methods to convert decimal to octal:
1) Indirect method: First convert the decimal to binary, then convert the binary to octal
2) Direct method: As we said before, the octal system is derived from the binary system, so we can use a method similar to the decimal to binary system conversion, which is the conversion of the integer part and the conversion of the decimal part. Let's explain it in detail below:
①Integer part
Method: Divide by 8 and take the remainder method, that is, each time the integer part is divided by 8, the remainder is the number on the bit weight, and the quotient is divided by 8 again, and the remainder is the number on the previous bit weight. This step continues until the quotient is 0. When reading the last number, start from the last remainder and go to the first remainder.
② Decimal part
Method: Multiply by 8 to get the integer, that is, multiply the decimal part by 8, then take the integer part, multiply the remaining decimal part by 8 again, then take the integer part, and multiply the remaining decimal part by 8 again, and continue to take the decimal part until it reaches zero. If it can never reach zero, it is the same as the rounding of decimal numbers, and it is temporarily named 3 rounds 4 rounds.
Example: Convert the decimal number 796.703125 to octal
Solution: First divide the number into the integer part 796 and the decimal part 0.703125
Therefore, the result of decimal 796.703125 converted to octal is 1434.55
You can verify the above method. You can convert the decimal first and then convert it to octal to see if the result is the same