Function Block INT

The Function Block INT converts any data type to an Integer.

Note: Also see the article String Conversion To Numbers, if you are working with strings.

Input

Any data type can be passed at the input.

Output

The output returns an Integer. It is equal to 0, if the following conditions are met at the input:

  • A string with the value "" or "0"
  • A number 0
  • Bool FALSE or NULL