NXSL:d2x

Revision as of 13:50, 23 July 2012 by Lweidig (talk | contribs) (Add wikitable for parameters to be more consistent with new formatted documenatation)

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

dx2(15)  	->	"F"
d2x(15,4)	->	"000F"