summaryrefslogtreecommitdiff
path: root/amounts.py
blob: aa70086c800807e24cc93fb8b815d97d8d25c33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from amounts import *

x = Amount ("$123.45")
print x
x = x * 2
print x

y = Amount ("$1000.45")
print x + y

y = Amount ("$1000.45")
print x * y

z = Value ("$1000.45")
#print z + Value(y)

z += Value(x)
print z