I wish to convert an integer to Hex. For instance, if I subtract one Hex value from another Hex value, the result is an integer. I would like to get the Hex value of that integer.
Here is the code I have tried:
$val = (0xff - 0x28) print($val) $hex = ToHex($val) print($hex)
The results I get are: start 1: $val = (0xff - 0x28) 2: print($val) >215
The results I want are: $hex = 0xD7Skip to comments