OCT2DEC (octal number to decimal number)

<< Click to Display Table of Contents >>

OCT2DEC (octal number to decimal number)

Syntax:

OCT2DEC(Number)

Description:

Converts the given octal number (base 8) to a decimal number (base 10).

Number is the number to be converted.

Negative numbers have to be transformed to two's complement notation (see last example).

The permissible value range for Number is (in octal notation)

20000000000 ≤ Number ≤ 17777777777

This corresponds in decimal notation:

-2,147,483,648 ≤ Number ≤ 2,147,483,647

Example:

OCT2DEC("52") returns 42

OCT2DEC("0052") returns 42 as well

OCT2DEC("37777777726") returns -42

See also:

DEC2OCT, OCT2BIN, OCT2HEX, DECIMAL