ReferenceFunctionsEngineering Functions
OCT2DEC
OCT2DEC: Converts an octal text value to decimal.
Summary
Supports up to 10 octal digits, including signed two's-complement values.
Remarks
- Input is coerced to text and must contain only digits
0through7. - 10-digit values beginning with
4-7are interpreted as signed 30-bit numbers. - Returns
#NUM!for invalid characters or inputs longer than 10 digits.
Examples
Convert positive octal
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
15
Interpret signed 30-bit octal
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-1
Related functions
FAQ
How does OCT2DEC interpret 10-digit values starting with 4-7?
Those are treated as signed 30-bit two's-complement octal values.
Runtime metadata
Category
Engineering
Signature
OCT2DEC(arg1: Any)Arity
min 1, max 1
Arguments
arg1Any · Scalar
Caps
PURE
Source