1== 1 is False?

Max M maxm at mxm.dk
Tue Jun 24 10:52:19 CEST 2003

Thomas Nücker wrote:

> What do i have to do, if i need "more" exactness? 
> I have for example the problem with the representation of 2.3 or 2.7:
> 2.2999999999999998
> 2.7000000000000002
> This is a really strange behaviour!

No it is not. Furthermore it is well documented.

I searched Google for: "python floating point precision"

Second result has the title:

B. Floating Point Arithmetic: Issues and Limitations

regards Max M

More information about the Python-list mailing list