# oct2hex

This function converts a single octetstring value to a single hexstring. The resulting hexstring represents the same value as the octetstring.

For the purpose of this conversion, a octetstring should be converted into a hexstring containing the same sequence of hex digits as the octetstring.

Related keyword:

- hexstring
- octetstring

### oct2hex(octetstring value) return hexstring

Example 1:

const hexstring c_kungsen := oct2hex('AA'O);

The constant called c_kungsen will have the hexadecimal value AA. Although both values on the screen may look the same (AA), they have different types (octet string respective character string).