hex
hex — converts numbers into hexadecimal form.
hex (number)
numberAny number.
An integer number in hexadecimal format.
This function casts any number to an integer, and returns it in a hexadecimal representation. Floating point numbers are truncated.
Gamma>hex (12);0xcGamma>hex (12.9341);0xcGamma>hex (0b111011);0x3bGamma>hex ('r');0x72Gamma>