Mar-06-2017, 06:56 PM
Hello guys,
7/1.4=5, the remainder is zero, simple maths.
But why 7%1.4 gives the result 4.440892098500626e-16?
I know it is extremely close to zero, but I want to know how Python do the maths and why it happen.
Does anyone can help me?
p.s. I am using Python 2.7.13
7/1.4=5, the remainder is zero, simple maths.
But why 7%1.4 gives the result 4.440892098500626e-16?
I know it is extremely close to zero, but I want to know how Python do the maths and why it happen.
Does anyone can help me?
p.s. I am using Python 2.7.13