hex: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: hexVal = hex(num) | [h: hexVal = hex(num) | ||
</ | </syntaxhighlight> | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: hex(23)] | [r: hex(23)] | ||
</ | </syntaxhighlight> | ||
Returns 0x17. | Returns 0x17. | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: hex(10)] | [r: hex(10)] | ||
</ | </syntaxhighlight> | ||
Returns 0xA. | Returns 0xA. | ||
}} | }} | ||
[[Category:Mathematical Function]] | [[Category:Mathematical Function]] |
Latest revision as of 23:59, 15 March 2023
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)]