diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-09-16 17:29:45 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-09-16 17:29:45 -0700 |
| commit | 68bfd066a588407d86d50bf384ba10f1d1a7ad88 (patch) | |
| tree | ddd1b2e8d1c45d354a4b7fbbbac839b9e1e41477 /Param/Float/__init__.py | |
| parent | 95998e066b05b6f006e2497267801e93db347717 (diff) | |
going back
Diffstat (limited to 'Param/Float/__init__.py')
| -rw-r--r-- | Param/Float/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
