diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-20 13:33:03 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-20 13:33:03 (GMT) |
commit | a7a52ab7ee58be0afca3a7763fffc928dcf5459d (patch) | |
tree | 1d68a09ae7bb1ffd1305a2942f3a323d125da92e /Lib/decimal.py | |
parent | e047d7953f0ff940bcd10737204a44f42929dc82 (diff) | |
download | cpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.zip cpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.tar.gz cpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.tar.bz2 |
Issue #7099: Decimal.is_normal should return True for all nonzero
finite non-subnormal values, even those with exponent > Emax.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 75e5eea..7384d36 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -2917,7 +2917,7 @@ class Decimal(object): return False if context is None: context = getcontext() - return context.Emin <= self.adjusted() <= context.Emax + return context.Emin <= self.adjusted() def is_qnan(self): """Return True if self is a quiet NaN; otherwise return False.""" |