Description
Converts an octal number to hexadecimal.
Syntax
OCT2HEX ( 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.
If number is negative, OCT2HEX returns a 10-character hexadecimal number. Negative numbers are represented using two's-complement notation.
If number is not a valid octal number, OCT2HEX returns the #NUM! error value.
Examples
OCT2HEX ( 100 ) returns 40
OCT2HEX ( 7777777533 ) returns FFFFFFFF5B
See also