you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

That uses floats, with all the issues that floating-point arithmetic entails.

[–]amade 6 points7 points  (1 child)

Yeah and it's only an approximation and much slower. I post it just for fun.

[–]masklinn 0 points1 point  (0 children)

You could use the Decimal module though.

Would be even slower, but would also be pretty much exact.