How should I expect Python to handle a simple floating point calculation like this:
float(6/4)
The output from this in the shell is
1.0
I would expect this to be 1.5, so what gives?
How should I expect Python to handle a simple floating point calculation like this:
float(6/4)
The output from this in the shell is
1.0
I would expect this to be 1.5, so what gives?
Python is using integer division here.