Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the DEC2OCT function. |
| [places] | (Optional.) Parameter of the DEC2OCT function. |
Examples
Basic conversion
=DEC2OCT(64)
Unix file permission
=DEC2OCT(493)
Padded output
=DEC2OCT(8, 4)
Common Errors
The number is outside the valid range (-536,870,912 to 536,870,911), or places is too small for the result.
The argument is non-numeric.
Tips
Use DEC2OCT to convert file permission numbers: 493=755 (rwxr-xr-x), 420=644 (rw-r--r--), 509=775 (rwxrwxr-x).
DEC2OCT handles numbers in the 30-bit signed range. This is sufficient for most file permission and legacy computing uses.
Like other DEC2 functions, the result is a text string. Don't treat '100' as the number one hundred — it represents 64 in decimal.
Try DEC2OCT in Viztab
Import your data and use DEC2OCT with 370+ other formulas. No signup required.
Open Viztab