$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5
#python
Ahh, contrived examples of floating point errors. I haven't seen those since I asked Javascript to add 0.1 and 0.2 :)
Post funny things about programming here! (Or just rant about your favourite programming language.)
#python
Ahh, contrived examples of floating point errors. I haven't seen those since I asked Javascript to add 0.1 and 0.2 :)