We have 2 types of numbers:
We can do the basic operations on them, like you would expect: +
, -
, *
, /
and %
(remainder).
But why do we need 2 types of numbers? The mathematical operations on them give different results. And we need both of them, depending on the problem we are trying to solve.
The main difference is when we use division:
5/2 = 2
5.0/2.0 = 2.5
Try to play around with the "Output" block, use it as a simple calculator. Do these calculations:
5 / 2
5.0 / 2.0
8 * 3.14