Home › Functions › Engineering › DEC2OCT
fx
DEC2OCT
Engineering  ·  Since: Excel 2003  ·  9 languages

Converts a decimal number to octal.

🌐 Translations

English DEC2OCT
Deutsch DEZINOKT
Français DECOCT
Español DEC.A.OCT
Italiano DECIMALE.OCT
Português DECAOCT
Nederlands DEC.N.OCT
Polski DZIES.NA.ÓSM
Русский ДЕС.В.ВОСЬМ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

DEC2OCT(number,[places])

Arguments

number (required) — The decimal integer you want to convert. If number is negative, places is ignored and DEC2OCT returns a 10-character (30-bit) octal number in which the most significant bit is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
places (optional) — The number of characters to use. If places is omitted, DEC2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

▶ Examples

=DEC2OCT(58,3)
=DEC2OCT(-100)

Related functions

Copied to clipboard