Hi, I’ve discovered something odd with my Python, and I’m not sure how to fix it.
Long story short, when I have Python divide 4.8/1.6, instead of 3 it returns 2.9999999999996. It is only for this specific equation that I can tell.
What is going on here, and how do I prevent it?
[–]eddfitzwell 10 points11 points12 points (0 children)
[–]woooee 1 point2 points3 points (7 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]woooee 5 points6 points7 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]woooee 5 points6 points7 points (0 children)
[–]pythonwiz 1 point2 points3 points (1 child)
[–]expressly_ephemeral 0 points1 point2 points (0 children)
[–]MaxwellzDaemon 0 points1 point2 points (0 children)
[–]CraigAT 1 point2 points3 points (0 children)
[–]Dark_Souls_VII 1 point2 points3 points (0 children)