hex

From RPTools Wiki
Revision as of 00:22, 2 December 2008 by Craig (talk | contribs) (New page: ==Function hex== Returns a string which contains the hexadecimal representation of the number that was passed in. ===Usage=== <source lang="mtmacro" line> [h: hexVal = hex(num) </source> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function hex

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.