On Jun 9, 10:54 am, Paul Hankin <[EMAIL PROTECTED]> wrote: > > Hi Frank, > I don't know why you think Decimal is complicated: it has some > advanced features, but for what you seem to be doing it should be easy > to replace your 'Number' with it. In fact, it makes things simpler > since you don't have to worry about 'scale'. > > Your examples convert easily: > > from decimal import Decimal > qty = Decimal('12.5') > price = Decimal('123.45') > > print price * qty > print qty * price > print (qty * price).quantize(Decimal('0.01')) >
I thought I might be missing something obvious. This does indeed look easy. Thanks, Paul Frank -- http://mail.python.org/mailman/listinfo/python-list