For converting the other way around (decimal to hex), see help on transform().
The algorithm - for doing it yourself - (shortcut method) is:
Divide repeatedly by 16. The remainders (in revers order) give you the hexadecimal number.
Example: 254
254 / 16 = 15, remainder 14 (digit "E")
15 / 16 = 0, remainder 15 (digit "F").
The hex number is FE.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)