Syntax
=DEC2OCT(number, [places])Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | The decimal integer to convert |
places | Optional | The number of characters to use (left out: as few as needed) |
How to use DEC2OCT
DEC2OCT takes 1 required argument and 1 optional argument. Type =DEC2OCT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DEC2OCT(58, 3)Result =DEC2OCT(-100)Result Related engineering functions
- COMPLEXBuilds a complex number as text from its real and imaginary parts.
- CONVERTConverts a number from one measurement unit to another, like feet to meters or Fahrenheit to Celsius.
- DEC2BINConverts a decimal number to binary.
- DEC2HEXConverts a decimal number to hexadecimal.
- DELTAReturns 1 when two numbers are equal and 0 otherwise.
- ERFReturns the error function integrated between zero (or a lower limit) and an upper limit.
- ERF.PRECISEReturns the error function integrated between zero and a limit.
- ERFCReturns the complementary error function integrated between a value and infinity.
- ERFC.PRECISEReturns the complementary error function integrated between a value and infinity.