The hex function returns the hexadecimal value of the parameter passed to it. The type of the value returned by this function is always string.
The hex function's only parameter is the expression of integral type whose value is to be converted to hexadecimal.
hex(10) returns 'A'
hex(16) returns '10'
hex(255) returns 'FF'
Operating Systems: All
Standard Pascal: No