HEX2OCT:
Converts a hexadecimal number to octal
The HEX2OCT function converts a hexadecimal number to octal.
HEX2OCT takes
1 required argument and
1 optional argument:
Syntax: HEX2OCT(number,
[places])
Using the HEX2OCT function:
The arguments for the HEX2OCT function are:
Argument

Required?

Description

number 
Required 
The hexadecimal number you want to convert. number cannot contain more than 10 characters. The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two'scomplement notation. 
places 
Optional 
The number of characters to use. If places is omitted, HEX2OCT uses the minimum number of characters necessary. places is useful for padding the return value with leading 0s (zeros). 
• If number is negative, HEX2OCT ignores places and returns a 10character octal number. 
• If number is negative, it cannot be less than FFE0000000, and if number is positive, it cannot be greater than 1FFFFFFF. 
• If number is not a valid hexadecimal number, HEX2OCT returns the #NUM! error value. 
• If HEX2OCT requires more than places characters, it returns the #NUM! error value. 
• If places is not an integer, it is truncated. 
• If places is nonnumeric, HEX2OCT returns the #VALUE! error value. 
• If places is negative, HEX2OCT returns the #NUM! error value. 
The HEX2OCT function converts a hexadecimal number to octal.