aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ee/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py
index 0450c40..1eb79d0 100644
--- a/src/ee/__init__.py
+++ b/src/ee/__init__.py
@@ -60,10 +60,10 @@ class EeVal(object):
return self._unit
def __eq__(self, other):
- return ((self._value, self._unit) == (other._value, other._unit))
+ return ((self.__float__(), self._unit) == (other.__float__(), other._unit))
def __lt__(self, other):
- return ((self._value, self._unit) < (other._value, other._unit))
+ return ((self.__float__(), self._unit) < (other.__float__(), other._unit))
def __str__(self):
return eng_str(self.__float__(), self._unit)