Difference between revisions of "NXSL:d2x"
Jump to navigation
Jump to search
m (Add wikitable for parameters to be more consistent with new formatted documenatation) |
|||
Line 25: | Line 25: | ||
== Examples == | == Examples == | ||
d2x(15) -> "F" | |||
d2x(15,4) -> "000F" | d2x(15,4) -> "000F" |
Revision as of 13:32, 21 August 2013
Returns the hexidecimal value of a decimal.
Syntax
d2x(number [,padding]);
Parameters
number | Number to convert to hexadecimal value. |
padding | [Optional] left pads results to length given, must be a non-negative whole number. |
Return Value
Hexadecimal value of number.
Examples
d2x(15) -> "F" d2x(15,4) -> "000F"