Navigation:  Formula Reference > Spreadsheet Formula Functions >

DEC2OCT

Previous pageReturn to chapter overviewNext page

 

This function converts a decimal number to an octal number.

Syntax

DEC2OCT(number,places)

Arguments

This function has these arguments:

Argument

Description

number

Decimal numeric value to convert in the range of -536,870,912 and 536,870,911

places

[Optional] Number of characters to return; if not an integer, the number is truncated

If places argument is omitted, the calculation uses the minimum number of characters necessary. This argument is useful for adding leading zeros to the result.

Remarks

An error value is returned if the number is non-numeric or outside the range, or if the places value is non-numeric, negative, or too small.

Data Types

Accepts numeric data. Returns numeric data.

Examples

DEC2OCT(-99)

 

See Also

BIN2OCT

DEC2BIN

DEC2HEX

OCT2BIN