Conversion Between Ints and Floats

If you mix ints and floats in an expression, the result will always be a float.
Note that when you divide two ints, you get a float back.
A value can be explicity coerced (i.e. converted) using the int and float functions.
Calling the int function on a float truncates everything after the decimal point.

2.0 + 3 # 5.0  
12 / 2 # 6.0  
int(12 / 2) # 6  
int(-2.9) # -2