On 06/20/2014 06:11 PM, FraserL wrote:
Ok I've seen https://docs.python.org/2/tutorial/floatingpoint.html now
thanks to Yhg1s on #python
I bet you get this kind of thing a lot, sorry :-/
Yes, often, but it's not a problem. :-)
FraserL <fraser.long+use...@nospamgmail.com> wrote in
news:XnsA35313E634BA0fraserlonggmailcom34@216.196.109.145:
I think I found a strange bug in python 3.4.1,
...
#test code
z = 0.01
p = 0.0
for x, y in enumerate(range(1, 20)):
p += z
print(p)
#end
3.4.1 output:
...
0.05
0.060000000000000005
0.07
...
I'm not hugely accustomed to Python, but this seems crazy to me.
--
https://mail.python.org/mailman/listinfo/python-list