Against PEP 240

Aahz Maruch aahz at panix.com
Thu May 31 19:49:34 EDT 2001


In article <3b16a154.9545695 at wa.news.verio.net>,
Bengt Richter <bokr at accessone.com> wrote:
>On 31 May 2001 10:28:32 -0700, aahz at panix.com (Aahz Maruch) wrote:
>>
>>One can have floating-point BCD, which is what I'm currently working on.
>>It's a real pleasure to write
>>
>>    1.2e2346257231235019862340987162305961293865 * 2.0
>>
>>and get
>>
>>    2.40e2346257231235019862340987162305961293865
>>
>>Note carefully the mantissa with its trailing zero.
>
>Just curious, is that based on something like [ <long>, <long> ]
>with the second being a decimal exponent, analogous to binary fp?
>
>Or, are you maintaining a decimal digit sequence representation
>with some decimal "digit" radix like 10^4 or 10^9 (with each "digit"
>represented in binary)? Or?

The exponent is a long, but the digits are a tuple.  See
http://starship.python.net/crew/aahz/
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Characters exist to suffer, you know.  An author needs a little sadism
in her makeup."  --Brenda Clough



More information about the Python-list mailing list