A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/109439.html below:

newbie seeks inaccurate arithmetic insight

newbie seeks inaccurate arithmetic insight newbie seeks inaccurate arithmetic insightStanley Krute StanleyKrute at starband.net
Mon Apr 30 09:31:18 EDT 2001
Hi Tim

> Not unique to Python; same story in C, C++, Java, Perl, Fortran, etc.

Hmmm. Here's a corresponding c program

    http://static.userland.com/images/stanleydaily/carithmeticprogram.gif

and here's its output

    http://static.userland.com/images/stanleydaily/carithmetic.gif

> See
>
>     http://www.python.org/cgi-bin/moinmoin/RepresentationError
>
> for details.

Thanks for the link.

> If you need exact decimal arithmetic, and can afford the expense of
> simulating decimal arithmetic, your best bet for now in Python is to use
the
> FixedPoint class at
>
>
ftp://ftp.python.org/pub/python/contrib-09-Dec-1999/DataStructures/FixedPoin
t.py
>

Thanks again for the link.

> if-you-want-exact-buy-a-one-dollar-hand-calculator

<hehehehe>

stan




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4