[Python-Dev] Rounding float to int directly ...

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 3 04:14:53 CEST 2006


Michael Chermside wrote:
> (Why you would WANT
> more than around 53 bits of precision is a different question, but
> Decimal handles it.)

You can't have travelled far beyond Alpha Centauri
recently. The major interstellar banking corporations
need *quite* a lot of bits for dealing with the
economy of a medium-sized galaxy. The Decimal module
has been a godsend to them -- they were all making
do with long integers until that came along.

Of course they've had to make some modifications
to handle the number bases used by some of the
more unusual species out there, such as the
13-fingered Quezorpians, but that's just a simple
matter of programming.

Always remember where your towel is,
Zaphod


More information about the Python-Dev mailing list