hex

From RPTools Wiki
Revision as of 22:56, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page Hex to hex: Converting page titles to lowercase)
Jump to navigation Jump to search

hex() Function

Returns a string which contains the hexadecimal representation of the number that was passed in.

Usage

[h: hexVal = hex(num)

Examples

[r: hex(23)]

Returns 0x17.

[r: hex(10)]
Returns 0xA.