Skip Navigation
Jump
Confused about multiplying floating-point & integer values
  • I think I understand where you get confused. The returned value of the input function is always a string, you have to convert it into a number before using it in calculation. Otherwise the auto-parser will convert everything into string. Even if you use * or **.

    6