Variable types
From GeoMod
[edit]
A note on Variable Types
Although you do not define different types of variables in Python variable types are still important, particularly in mathematical operations.
The number 1 is an integer, while the number 1.0 is a decimal (floating point number). The computer sees these two as different.
6.0/5 = 1.2
while
6/5 = 1
The computer treats the first equation as a floating point operation because there is a floating point number in the equation. In the second equation the computer sees two integers and gives an integer result, which is the floating point answer rounded down to the nearest integer.

