Verison 2.6.5 if it helps. So, I'm doing some stuff in django and grabbing a value from a Floatfield. And comparing it to another floatfield. Let's call these 2 X and Y. X eventually ends up as 35.0 when I run it. Y eventually ends up as 35.0 when I run it.
35.0 > 35.0 # False, ok no worries
X > Y # True, why?
round(X) > round(Y) # False, ok looks like i have to round it
I know float has issues during calculation but in this case, the values for my two variables were displayed as 35.0 so I thought they actually were 35.0. Does this mean python might not show some information behind the float object? I know this is a common question but if it were actually 35.000000001 or something, does python not display that entire value?
Edit: OK, finally read through this. Floating point life problems solved for me now lol. http://docs.python.org/2/tutorial/floatingpoint.html