convert decimal to octal

decimal:
octal:

convert decimal to octal

this calculator quickly converts decimal numbers into octal numbers!

octal to decimal conversion

(1) convert octal to decimal

method: add by weight, that is, multiply the number in each bit of the octal system by the bit weight, and then add the sum to 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 decimal to binary, and then convert binary to octal

2) direct method: as we said before, octal is derived from binary, so we can use a method similar to the conversion of decimal to binary, 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 the place weight, and the quotient continues to be divided by 8, the remainder is the number on the previous place weight, and this step continues , until the quotient is 0. when reading the last number, start from the last remainder to the first remainder.

②decimal part

method: multiply by 8 to round up, that is, multiply the decimal part by 8, then take the integer part, continue to multiply the remaining decimal part by 8, then take the integer part, multiply the remaining decimal part by 8, and take the decimal part. until it reaches zero. if it can never be zero, it is just like the rounding of decimal numbers, temporarily named 3 rounding.

example: convert decimal number 796.703125 to octal number

solution: first divide this number into the integer part 796 and the decimal part 0.703125

therefore, we get the result decimal 796.703125 converted to octal 1434.55

you can verify the above method. you can convert decimal first and then convert it to octal to see if the results are the same.