[Python-Dev] Unifying decimal numbers.

2005-11-09 Thread Sokolov Yura
Excuse my English I think, we could just segregate tokens for decimal and real float and make them interoperable. Motivation: Most of us works with business databases - all "floats" are really decimals, algebraic operations should work without float inconsistency and those operations rare so

Re: [Python-Dev] Unifying decimal numbers.

2005-11-08 Thread Bill Janssen
Might be more interesting to think about replacing ints and Decimal with implicit-denominator rational type. In the HTTP-NG typing proposal, we called this a "fixed-point" type. See Section 4.5.1 of http://www.w3.org/Protocols/HTTP-NG/1998/08/draft-frystyk-httpng-arch-00.txt for details. The cur

Re: [Python-Dev] Unifying decimal numbers.

2005-11-08 Thread Josiah Carlson
winlinchu <[EMAIL PROTECTED]> wrote: > Now, Python unified ints and long ints. > For Python 3k, could be introduced a "Decimal" type > (yes, Decimal, the library module!) in place of the > actual float object. Of course, the Decimal type would > be rewritten in C. There is code which relies on st

[Python-Dev] Unifying decimal numbers.

2005-11-08 Thread winlinchu
Now, Python unified ints and long ints. For Python 3k, could be introduced a "Decimal" type (yes, Decimal, the library module!) in place of the actual float object. Of course, the Decimal type would be rewritten in C. Thanks. ___ Yahoo! Messenger