diff options
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py index 7fa2243..2fad46d 100644 --- a/src/ee/__init__.py +++ b/src/ee/__init__.py @@ -46,7 +46,7 @@ class EeVal(object): exp = gs[1].strip() exp = EeVal.exponents.get(exp) if len(exp) > 0 else 0 unit = gs[2] - if value < 1: + if value != 0 and value < 1: e = math.ceil(math.log10(value)) exp = exp + e value = value * math.pow(10, -e) |