Type Casting Blocks

These blocks allow to change from one data type to another. There are four different blocks available:

  1. Bool to real: it transforms a boolean variable to a real variable.

  2. Integer to real: it transforms an integer variable to a real variable.

  3. Real to bool: it transforms a real variable to a boolean variable. Any number but 0 will be transformed to true; the rest (negative numbers included) will yield false.

  4. Real to integer: it transforms a real variable to an integer variable.

Type casting blocks

Type Castings Blocks