Skip to main content
← All functions

DEC2OCT function

Converts a decimal number to octal

Syntax

DEC2OCT(number, [places])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
numberYesThe decimal number you want to convert.58
placesNoThe number of characters to use.3

Try DEC2OCT

Convert a base representation with DEC2OCT

=DEC2OCT(A2,B2)

83 = 1*64+2*8+3, so its octal representation is 123. Four places give the text 0123. These small positive examples avoid signed two-complement limits.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

DEC2OCT · top-level call

=DEC2OCT(A2,B2)

1 / 2 · number

The decimal number you want to convert.

DEC2OCT reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.