Chuck Esterbrook wrote:
One of my test cases even reads:

    assert .1+.1+.1+.1+.1+.1+.1+.1+.1+.1 == 1.0

Which fails in most languages including Python.

>>> assert .1+.1+.1+.1+.1+.1+.1+.1+.1+.1 == 1.0
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AssertionError
>>> print .1+.1+.1+.1+.1+.1+.1+.1+.1+.1
1.0

They both appear to come out to 1.0. Is the print statement doing some rounding as well or something?

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to