I try get ration of variable and get unexpected result. Can somebody explain this?
>>> value = 3.2 >>> ratios = value.as_integer_ratio() &g
It's not 16/5 because 3.2 isn't 3.2 exactly... it's a floating point rough approximation of it... eg: 3.20000000000000017764
3.2
3.20000000000000017764