Syntax
hex(integer)
Description
hex() will return the hexadecimal equivalent of the decimal integer passed to the function.
Example
num=25 hexadecimal=hex(num) println("Decimal 25 is ", hexadecimal, " in hex") println("Decimal 100 is ", hex(100), " in hex") Decimal 25 is 0x19 in hex Decimal 100 is 0x64 in hex