Titan



hex2int


This function converts a single hexstring value to a single integer value.

For the purposes of this conversion, a hexstring shall be interpreted as a positive base 16 integer value. The rightmost hexadecimal digit is least significant, the leftmost hexadecimal digit is the most significant. The hexadecimal digits 0 .. F represent the decimal values 0 .. 15 respectively.


Related keyword:


hex2int(hexstring value) return integer


Example 1:

const integer c_gondol := hex2int ('555'H);

The constant called c_gondol will have the integer value 1365. The result will always be positive.