Hello all I am using python 2.7 32 on a windows 10 64 bit OS and I get some weird results.
When runnig the following code
from numpy import sin, pi
for i in range(6, 10):
x = 10**-i
print(sin(x*pi)/x/pi)
print(sin(x*pi)/x/pi, i)
I get different results, though it is the same math
0.999999999998
(0.99999999999835498, 6)
1.0
(0.99999999999998357, 7)
1.0
(0.99999999999999967, 8)
1.0
(1.0, 9)
When I import print function from future I get the same results. Just curious why thouse this occurs?
Note: Though the print is different I get the same results if I compare them.