Against PEP 240

Bengt Richter bokr at accessone.com
Thu May 31 16:04:37 EDT 2001


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?




More information about the Python-list mailing list