DEC2OCT Function
Convert a decimal number to an octal number. number is an integer from -536,870,912 to 536,870,911; decimals are truncated. A negative number returns ten octal digits in two's-complement notation. places pads the result with leading zeros to that number of characters. A number out of range or too few places returns #NUM!, and text that is not a number returns #VALUE!.
Syntax
DEC2OCT(number, places)
Category: Engineering. Minimum arguments: 1. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=DEC2OCT(10)
The formula returns the text 12.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.