Convert decimal to octal
Convert decimal to octal
This calculator quickly converts decimal numbers to octal numbers!
Octal to decimal conversion
(1) Convert octal to decimal
Method: Use the weighted addition method, that is, multiply the number in 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 ways 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 mentioned earlier, octal is derived from binary, so we can use a method similar to the decimal to binary conversion, or 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, divide the integer part by 8 each time, the remainder is the number on that position, and continue to divide the quotient by 8, the remainder is the number on the previous position, this step continues until the quotient is 0, and when reading the last number, start from the last remainder and continue 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, multiply the remaining decimal part by 8 again, and continue to take the integer part until the decimal part is zero. If it can never be 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 this number into the integer part 796 and the decimal part 0.703125
Therefore, the decimal result 796.703125 is converted to octal 1434.55
You can verify the above method by converting the decimal first and then converting it to octal to see if the results are the same.