Re: rounding errors?

From: Anthony Baxter (anthonybaxter_at_gmail.com)
Date: 07/04/04


Date: Sun, 4 Jul 2004 23:42:57 +1000
To: Dan Bishop <danb_83@yahoo.com>

On 3 Jul 2004 15:17:35 -0700, Dan Bishop <danb_83@yahoo.com> wrote:
> > Note that Python 2.4 will include a 'decimal' module that exposes a
> > numerical type far better suited to this sort of calculation that
> > binary floating point.
>
> Only if you're calculating inherently decimal things (like money).
>

Or anything where you really care about having controllable
precision.



Relevant Pages

  • Re: rounding errors?
    ... numerical type far better suited to this sort of calculation that ... binary floating point. ...
    (comp.lang.python)
  • Re: rounding errors?
    ... > numerical type far better suited to this sort of calculation that ... > binary floating point. ... Only if you're calculating inherently decimal things (like money). ...
    (comp.lang.python)
  • Re: ORDER BY Issues
    ... Is the field truly alphanumeric as the sample data you show is all ... If the field in the database is not a numerical type you can try ... > I have an alphanumeric field I'm trying to sort by, ... > the way ADO sorts. ...
    (microsoft.public.vb.database.ado)