Converts a decimal number to an octal number.
Syntax
DEC2OCT(number, [places])Argument
numberobligatoriskt
The decimal integer you want to convert.
placesvalfritt
The number of characters to use; if omitted, the minimum number of characters is used.
The DEC2OCT function converts a decimal integer to its octal equivalent. If the number is negative, the function returns a 10-character two's complement octal number.
=DEC2OCT(56)→70Converts the decimal number 56 to octal.
=DEC2OCT(10, 4)→0012Converts 10 to octal with a fixed length of 4 characters.
Select the cell
Click on the cell where you want to display the octal result.
Enter the formula
Type =DEC2OCT(number) and press Enter.
The number must be between -536,870,912 and 536,870,911.