Difference between revisions of "NXSL:d2x"

From NetXMS Wiki
Jump to navigation Jump to search
m (Text replacement - "^" to "{{deprecated}}")
 
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Returns the hexidecimal value of a decimal.
Returns the hexidecimal value of a decimal.



Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

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"