OCT2DEC

The OCT2DEC function converts a signed octal number to decimal format.

Sample Usage

OCT2DEC(37)

OCT2DEC(A2)

Syntax

OCT2DEC(signed_octal_number)

  • signed_octal_number - The signed 30-bit octal value to be converted to decimal, provided as a string.

    • The most significant bit of signed_octal_number is the sign bit; that is, negative numbers are represented in two's complement format.

    • For this function, this value has a maximum of 3777777777 if positive, and a minimum of 4000000000 if negative.

    • If signed_octal_number is provided as a valid octal number, it will automatically be converted to the appropriate string input. For example, OCT2DEC(177) and OCT2DEC("177") yield the same result: 127.

Notes

  • As with any octal value, only the digits 0-7 are valid. Digits outside of this will cause OCT2DEC to return a #NUM! error.

See Also

OCT2BIN: The OCT2BIN function converts a signed octal number to signed binary format.

HEX2OCT: The HEX2OCT function converts a signed hexadecimal number to signed octal format.

HEX2DEC: The HEX2DEC function converts a signed hexadecimal number to decimal format.

HEX2BIN: The HEX2BIN function converts a signed hexadecimal number to signed binary format.

DEC2OCT: The DEC2OCT function converts a decimal number to signed octal format.

DEC2HEX: The DEC2HEX function converts a decimal number to signed hexadecimal format.

DEC2BIN: The DEC2BIN function converts a decimal number to signed binary format.

BIN2OCT: The BIN2OCT function converts a signed binary number to signed octal format.

BIN2HEX: The BIN2HEX function converts a signed binary number to signed hexadecimal format.

BIN2DEC: The BIN2DEC function converts a signed binary number to decimal format.

Examples

Converts an octal number to its decimal value.

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
11108804015590304286
true
Search Help Center
true
true
true
true
true
35
false
false