Python -- floating point arithmetic
Tim Roberts
timr at probo.com
Fri Jul 9 03:16:16 EDT 2010
David Mainzer <dm at tu-clausthal.de> wrote:
>
>All your comments helped me and now i know how it works in python !
This has nothing to do with Python. What you're seeing is the way IEEE-754
floating point arithmetic works. You'd see these same results in any
programming language, including assembly language (assuming it hasn't
changed the rounding mode).
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list