summaryrefslogtreecommitdiff
path: root/Param/Int/__init__.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-09-16 17:29:45 -0700
committeryo mama <pepper@scannerjammer.com>2015-09-16 17:29:45 -0700
commit68bfd066a588407d86d50bf384ba10f1d1a7ad88 (patch)
treeddd1b2e8d1c45d354a4b7fbbbac839b9e1e41477 /Param/Int/__init__.py
parent95998e066b05b6f006e2497267801e93db347717 (diff)
going back
Diffstat (limited to 'Param/Int/__init__.py')
-rw-r--r--Param/Int/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Param/Int/__init__.py b/Param/Int/__init__.py
index b7a5d32..4d52bdf 100644
--- a/Param/Int/__init__.py
+++ b/Param/Int/__init__.py
@@ -9,3 +9,8 @@ def ParamInt(Param):
except Exception as e:
self.err_warn("Not an int: %s" % str(value))
self.err_warn(str(e))
+ def __int__(self):
+ return int(self.value)
+
+ def __float__(self):
+ return float(self.value)