Python math is off by .000000000000045
breamoreboy at yahoo.co.uk
Wed Feb 22 19:24:37 CET 2012
On 22/02/2012 18:13, Alec Taylor wrote:
> Simple mathematical problem, + and - only:
> That's wrong.
> -60.95 aka (-(1219/20))
> Is there a reason Python math is only approximated? - Or is this a bug?
> Thanks for all info,
> Alec Taylor
Please google for floating point numbers.
More information about the Python-list