Against PEP 240
Aahz Maruch
aahz at panix.com
Thu May 31 19:55:17 EDT 2001
In article <5cwR6.103027$eK2.23447802 at news4.rdc1.on.home.com>,
Nick Perkins <nperkins7 at home.com> wrote:
>
>BTW, I have seen the term BCD thrown around, (Binary Coded Decimal)...
>Years ago I learned about BCD being a system that codes 2 decimal
>digits per byte. Is this still what is meant by BCD?
In a strict sense, yes, but it's also frequently used loosely to refer
to any system where pulling a specific digit is O(1).
>I would think that a modern 'Decimal' type would not use this, but
>something more like base*10^exp, where base and exp are stored as
>binary integers.
One of the prime arguments against this approach is the O(N^2)
binary/decimal conversion time.
--
--- 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