Owner manual

Chapter 5 Engineering Functions 95
OCT2HEX
The OCT2HEX function converts an octal number to the corresponding hexadecimal
number.
OCT2HEX(octal-string, convert-length)
 octal-string: The string representing the number to be converted. octal-string is a
string value. It must contain only the numbers 0 through 7.
 convert-length: An optional value specifying minimum length of the number
returned. convert-length is a number value and must be in the range 1 to 32. If
omitted, it is assumed to be 1. If included, convert-string is padded with leading
zeros, if necessary, so that it is at least the length specied by convert-length.
Usage Notes
This function uses twos complement notation, based on 32 bits. Therefore, negative Â
numbers will always be 8 digits in length.
Examples
=OCT2HEX(127,4) returns 0057.
=OCT2HEX(15) returns 0D.
Related Topics
For related functions and additional information, see:
“BIN2HEX” on page 77
“DEC2HEX” on page 84
“HEX2OCT on page 91
“OCT2BIN” on page 93
“OCT2DEC” on page 94
Listing of Engineering Functions on page 72
Value Types on page 36
The Elements of Formulas” on page 15
“Using the Keyboard and Mouse to Create and Edit Formulas” on page 26
“Pasting from Examples in Help” on page 41