Cash Register
Martin Maney
maney at pobox.com
Sat May 15 14:55:14 EDT 2004
Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
> I notice it's nicely agnostic about what kind
> of numbers are used. This will come in very handy
> if complex currency is ever introduced...
> ITEM $ 3.50
> ITEM $ 2.30j
> ITEM $ 1+2j
> ITEM $ 0
> TOTAL $ (4.5+4.3j)
> CASH $ 50
> CHANGE $ (45.5-4.3j)
Beautiful demonstration of the principle behind the rule that items
with complex prices may only be sold in conjugate pairs! :-)
--
automation: replacing what works with something that almost works,
but which is faster and cheaper. - attributed to Roger Needham
More information about the Python-list
mailing list