1. Home
  2. Functions
  3. Engineering
  4. DEC2OCT

DEC2OCT function

Converts a decimal number to octal.

Syntax

=DEC2OCT(number, [places])

Arguments

ArgumentRequiredDescription
numberRequiredThe decimal integer to convert
placesOptionalThe 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 "072"
=DEC2OCT(-100)Result "7777777634"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.