XenoGuard Documentation

Decimal to Binary

Actions » Programming » Number Operation » Conversion » Decimal to Binary 

The action Decimal to Binary converts a decimal number to its binary 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
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Number Operation node.
  3. In the Conversion node, select the Decimal to Binary action.


The action has the following input parameters:

Number Type
Specifies the data type to be used for a number.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Value [Unsigned Number]
The number to be converted.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]


The action returns the following results:

Result Contains the converted number from decimal to binary.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Number System [Binary]

Warning This action can only convert a decimal number to its binary equivalent.

Example 1 (Calculate the binary number from a variable):

This example converts the decimal number to a binary number of the local NumValue variable with a Number data type. The result was given an Unsigned Number data type and is then output via Write Text.

See other conversion operations:

Decimal to Hexadecimal
Hexadecimal to Decimal