[calc] Add tests for potential problems with the calc module.

- Added as a separate commit to confirm that the problem with .c 0.9*10
  exists and is fixed.
[calc] Fix .calc for expressions where left operand is float.

- Typo in the if-expression caused the fact that input operands are not int
  to be ignored.