Variables In I-Motors

All variables are integers. Entering a real number will not just truncate the number, but will not update the variable at all. For example, if a is equal to 0 and the user enters: a=10.1

Pa Returns 0

This behavior is also seen when addition, subtraction and multiplication are preformed. See below example.

a=0 before changing.

User enters: a=10.1+0.9

Pa Returns 0

 

Division that results in a decimal will be truncated, but the whole number will remain. For Example:

a=0 before Changing.

User enters: a=10/3

Pa Returns: 3