Return True if self is subnormal; otherwise return False.
(self, context=None)
| 3118 | return self._exp == 'N' |
| 3119 | |
| 3120 | def is_subnormal(self, context=None): |
| 3121 | """Return True if self is subnormal; otherwise return False.""" |
| 3122 | if self._is_special or not self: |
| 3123 | return False |
| 3124 | if context is None: |
| 3125 | context = getcontext() |
| 3126 | return self.adjusted() < context.Emin |
| 3127 | |
| 3128 | def is_zero(self): |
| 3129 | """Return True if self is a zero; otherwise return False.""" |