proposed language change to int/int==float (was: PEP0238 lament)
Lloyd Zusman
ljz at asfast.com
Sat Jul 28 23:14:01 EDT 2001
Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> writes:
> 27 Jul 2001 22:13:50 -0400, Lloyd Zusman <ljz at asfast.com> pisze:
>
>> Accountants and their kin want ledgers, positions, etc. to balance to
>> the penny (or centavo, or whatever is the smallest fractional currency
>> in a given country). This can only be accomplished using decimal
>> arithmetic ... like Bignums with implied decimal places.
>
> Not only; rationals work too.
Agreed: rationals with a fixed denominator for calculation results,
such as 100 in the U.S. where we have dollars and cents. And with
division, there probably would have to be rational remainders, also
with the same denominator.
> --
> __("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
> \__/
> ^^ SYGNATURA ZASTÊPCZA
> QRCZAK
--
Lloyd Zusman
ljz at asfast.com
More information about the Python-list
mailing list