Return True if self is a normal number; otherwise return False.
(self, context=None)
| 3095 | return self._exp in ('n', 'N') |
| 3096 | |
| 3097 | def is_normal(self, context=None): |
| 3098 | """Return True if self is a normal number; otherwise return False.""" |
| 3099 | if self._is_special or not self: |
| 3100 | return False |
| 3101 | if context is None: |
| 3102 | context = getcontext() |
| 3103 | return context.Emin <= self.adjusted() |
| 3104 | |
| 3105 | def is_qnan(self): |
| 3106 | """Return True if self is a quiet NaN; otherwise return False.""" |