Return True if the operand is subnormal; otherwise return False. >>> c = ExtendedContext.copy() >>> c.Emin = -999 >>> c.Emax = 999 >>> c.is_subnormal(Decimal('2.50')) False >>> c.is_subnormal(Decimal('0.1E-999')) True >>> c.is
(self, a)
| 4635 | return a.is_snan() |
| 4636 | |
| 4637 | def is_subnormal(self, a): |
| 4638 | """Return True if the operand is subnormal; otherwise return False. |
| 4639 | |
| 4640 | >>> c = ExtendedContext.copy() |
| 4641 | >>> c.Emin = -999 |
| 4642 | >>> c.Emax = 999 |
| 4643 | >>> c.is_subnormal(Decimal('2.50')) |
| 4644 | False |
| 4645 | >>> c.is_subnormal(Decimal('0.1E-999')) |
| 4646 | True |
| 4647 | >>> c.is_subnormal(Decimal('0.00')) |
| 4648 | False |
| 4649 | >>> c.is_subnormal(Decimal('-Inf')) |
| 4650 | False |
| 4651 | >>> c.is_subnormal(Decimal('NaN')) |
| 4652 | False |
| 4653 | >>> c.is_subnormal(1) |
| 4654 | False |
| 4655 | """ |
| 4656 | a = _convert_other(a, raiseit=True) |
| 4657 | return a.is_subnormal(context=self) |
| 4658 | |
| 4659 | def is_zero(self, a): |
| 4660 | """Return True if the operand is a zero; otherwise return False. |
nothing calls this directly
no test coverage detected