summaryrefslogtreecommitdiff
path: root/amounts.py
diff options
context:
space:
mode:
Diffstat (limited to 'amounts.py')
-rw-r--r--amounts.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/amounts.py b/amounts.py
new file mode 100644
index 00000000..f3a58986
--- /dev/null
+++ b/amounts.py
@@ -0,0 +1,15 @@
+from amounts import *
+
+x = Amount ("$123.45")
+print x
+x = x * 2
+print x
+
+y = Amount ("$1000.45")
+print x + y
+
+z = Value ("$1000.45")
+print y + z
+
+z += x
+print z