Formualizer Docs
ReferenceFunctionsEngineering Functions

DEC2OCT

DEC2OCT: Converts a decimal integer to octal text.

Summary

Optionally pads the result with leading zeros using places.

Remarks

  • number is coerced to an integer and must be in [-2^29, 2^29 - 1].
  • Negative values are returned as 10-digit two's-complement octal strings.
  • places must be at least the output width and at most 10, or #NUM! is returned.

Examples

Convert decimal to octal
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
100
Two's-complement negative output
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
7777777777

FAQ

What range does DEC2OCT support?

number must be in [-2^29, 2^29 - 1]; outside that range returns #NUM!.

Runtime metadata

Category

Engineering

Signature

DEC2OCT(arg1: Number, arg2…: Number)

Arity

min 1, max variadic

Arguments

arg1

Number · Scalar · coercion NumberLenientText

arg2

Number · Scalar · coercion NumberLenientText

Caps

PURE

Source

On this page