summaryrefslogtreecommitdiff
path: root/Param/Int/__init__.py
diff options
context:
space:
mode:
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)