Command convert.toint

The command convert.toint is used to convert a binary, decimal or hexadecimal value to an integer value.


  1. base [integer]
    The base that is used in the conversion:
    • 2: binary
    • 10: decimal
    • 16: hexadecimal
  2. number [string]
    Binary, decimal or hexadecimal that will be converted.
  3. variablereturn [integer]
    Variable that will store the result of the command.


In the example above the binary 1010 will be converted to decimal.

To display the converted value on the display, you need to convert it using the command inttostring.