XenoGuard 4.0 Documentation
Hexadecimal to Decimal
ActionStep Reference » Programming » Number Operation » Conversion » Hexadecimal to Decimal
The ActionStep Hexadecimal to Decimal converts a hexadecimal number to its decimal equivalent and stores the number in Result of the result list. Only the Unsigned Number data type is allowed to be used for the number type.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- Open the Number Operation node.
- In the Conversion node, select the Hexadecimal to Decimal ActionStep.
Parameters:
The ActionStep has the following input parameters:
NAME |
DESCRIPTION
|
---|---|
Number Type
|
Specifies the data type to be used for a number. Allowed Context Scopes [Fixed, Local, Global] Allowed Value [Unsigned Number] |
Source
|
The number to be converted. Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Results:
The ActionStep returns the following results:
NAME
|
DESCRIPTION
|
---|---|
Result |
Contains the converted number from hexadecimal to decimal. Allowed Context Scopes [Fixed, Local, Global] Allowed Number System [Binary] |
This ActionStep can only convert a hexadecimal number to its decimal equivalent. |
Example 1 (Calculate the decimal number from a variable):
This example converts the hexadecimal number to a decimal number of the local NumValue variable with a Text data type. The result was given an Unsigned Number data type and is then output via Message Box.