Calculates the integer equivalent of a hexadecimal value.
1 – Input
A string expression containing the hexadecimal character string. The string expression must be placed inside quotation marks, and enclosed in parentheses.
2 – Output
A longword integer equivalent to the hexadecimal value.
3 – Examples
The following example returns the integer equivalent to the hexadecimal value FF. DTR> PRINT FN$HEX_TO_DEC ("FF") FN$HEX TO DEC 255 DTR> The following example shows how the FN$HEX_TO_DEC function can be used to calculate the numeric value of the address of the first free page at the end of the program region of the process. DTR> PRINT FN$HEX_TO_DEC (FN$PROCESS_INFO ("FREP0VA" VIA - CON> JPI_CODES)) FN$HEX TO DEC 7991296 DTR>