Type Casting Blocks¶
These blocks allow to change from one data type to another. There are four different blocks available:
Bool to real: it transforms a boolean variable to a real variable.
Integer to real: it transforms an integer variable to a real variable.
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.
Real to integer: it transforms a real variable to an integer variable.
Type Castings Blocks