]> asedeno.scripts.mit.edu Git - bluechips.git/commit
Fix division of currency
authorAlejandro R. Sedeño <asedeno@mit.edu>
Fri, 19 Mar 2010 05:52:56 +0000 (01:52 -0400)
committerEvan Broder <broder@mit.edu>
Fri, 26 Mar 2010 14:25:52 +0000 (10:25 -0400)
commit91c2916731b30a0c43a2259dad2228c51421a06c
tree3970d9b8a96fa05cebd1127c40d72cae3e5fd891
parent71eadd66cee3b8de64ea51ced961339299072f62
Fix division of currency

Wrong:
>>> x=Currency('110')
>>> x/2.9
Currency("$55.00")

Right:
>>> x=Currency('110')
>>> x/2.9
Currency("$37.93")
bluechips/model/types.py