In article <mailman.11779.1405206078.18130.python-l...@python.org>,
 Chris Angelico <ros...@gmail.com> wrote:

> On Sun, Jul 13, 2014 at 4:14 AM, Johannes Bauer <dfnsonfsdu...@gmx.de> wrote:
> > Bullshit. Comparing floats by their representation is *generally* a bad
> > idea because of portability issues. You don't know if IEEE754 is used to
> > represent floats on the systems that your code is used on.
> 
> No, you don't, but I think you can safely assume that 1.0 == 1.0 on
> any system that Python runs on.
> 
> ChrisA

But, you can still have:

>>> print x
1.0
>>> print y
1.0
>>> print x == y
False


which, I know, isn't really what you were talking about, but it is part 
of the general confusion of using floats.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to