Difference between revisions of "NXSL:d2x"

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


Line 10: Line 10:
== Parameters ==
== Parameters ==


:{|
{| class="wikitable"
|-
|-
| ''number'' || Number to convert to hexadecimal value.
| ''number'' || Number to convert to hexadecimal value.
Line 25: Line 25:
== Examples ==
== Examples ==


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

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"