Rexx - X2D


Advertisements

This method returns the decimal conversion of a hexstring value.

Syntax

X2D(value) 

Parameters

  • value − This is the hexadecimal value which needs to be converted to a decimal value.

Return Value

This method returns the decimal conversion of a hexstring value.

Example

/* Main program */ 
say X2D("0E") 
say X2D("725") 
say X2D("F725") 
say X2D("FF725") 

When we run the above program we will get the following result.

Output

14
1829
63269
1046309
rexx_built_in_functions.htm
Advertisements