OCT2DEC

Description

Converts an octal number to decimal.

Syntax

OCT2DEC ( number )

Parameter Description
number The octal number to convert.

Remarks

Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits.

Negative numbers are represented using two's-complement notation.

If number is not a valid octal number, OCT2DEC returns the #NUM! error value.

Examples

OCT2DEC ( 54 ) returns 44

OCT2DEC ( 7777777533 ) returns -165

See also

DEC2OCT

HEX2OCT