toHex Summary Returns the hexadecimal (base 16) value of the integer. Usage public string toHex() Returns The hexadecimal representation of the integer. Description Returns the hexadecimal (base 16) representation of the integer value as a string. Examples Basic Usage 1234567import System; short a = 97, b = 98, z = 122; Console.log(a.toHex()); // "61"Console.log(b.toHex()); // "62"Console.log(z.toHex()); // "7a" Share HTML | BBCode | Direct Link