From 68bfd066a588407d86d50bf384ba10f1d1a7ad88 Mon Sep 17 00:00:00 2001 From: yo mama Date: Wed, 16 Sep 2015 17:29:45 -0700 Subject: going back --- Param/Float/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Param/Float/__init__.py') diff --git a/Param/Float/__init__.py b/Param/Float/__init__.py index e18fab4..eada7ac 100644 --- a/Param/Float/__init__.py +++ b/Param/Float/__init__.py @@ -9,3 +9,8 @@ def ParamFloat(Param): except Exception as e: self.err_warn("Not a float: %s" % str(value)) self.err_warn(str(e)) + def __int__(self): + return int(self.value) + + def __float__(self): + return float(self.value) -- cgit v1.2.3-70-g09d2