Appears to be the typical malfunction with floats but you can use math.ceil, your solution also works, to alleviate the problem. What is meant is that converting from/to floats may remove/add decimal values; at least this is what I myself have experienced.
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
|