Apologies if this has already been asked but why does this:
In Python 2, division between 2 integers will return an integer (rounding to the closest integer to 0), in this case,
0. Your code is basically
float(0) which is
You would need to change one of your values to a float first if you want to return a float.
This behavior is changed in Python 3, where division between 2 integers will return a float,
0.8 in this case.