spir wrote:
# By the way, I do not understand at all the behaviour of repr on rounded floats:x = round(1.1,1) print x, repr(x), "%s" %x 1.1 1.1000000000000001 1.1
This is a FAQ question: http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate Sincerely, Albert _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor