<< Click to Display Table of Contents >> OCT2DEC (octal number to decimal number) |
Syntax:
OCT2DEC(Number)
Description:
This converts the given octal number (base 8) to a decimal number (base 10).
Number is the number to be converted.
Negative numbers must be represented in the 32-bit two's complement (see last example).
The permissible value range for Number is (in octal notation):
20000000000 ≤ Number ≤ 17777777777
This corresponds in decimal notation to:
-2,147,483,648 ≤ Number ≤ 2,147,483,647
Example:
OCT2DEC("52") returns 42
OCT2DEC("0052") also returns 42
OCT2DEC("37777777726") returns -42
See also: