Integer arithmetic: 9/10 = 0
float arithmetic: 9.0/10 = 0.9

Make one of the numbers a float to get float arithmetic