Return True if the operand is a normal number; otherwise return False. >>> c = ExtendedContext.copy() >>> c.Emin = -999 >>> c.Emax = 999 >>> c.is_normal(Decimal('2.50')) True >>> c.is_normal(Decimal('0.1E-999')) False >>> c.is_
(self, a)
| 4531 | return a.is_nan() |
| 4532 | |
| 4533 | def is_normal(self, a): |
| 4534 | """Return True if the operand is a normal number; |
| 4535 | otherwise return False. |
| 4536 | |
| 4537 | >>> c = ExtendedContext.copy() |
| 4538 | >>> c.Emin = -999 |
| 4539 | >>> c.Emax = 999 |
| 4540 | >>> c.is_normal(Decimal('2.50')) |
| 4541 | True |
| 4542 | >>> c.is_normal(Decimal('0.1E-999')) |
| 4543 | False |
| 4544 | >>> c.is_normal(Decimal('0.00')) |
| 4545 | False |
| 4546 | >>> c.is_normal(Decimal('-Inf')) |
| 4547 | False |
| 4548 | >>> c.is_normal(Decimal('NaN')) |
| 4549 | False |
| 4550 | >>> c.is_normal(1) |
| 4551 | True |
| 4552 | """ |
| 4553 | a = _convert_other(a, raiseit=True) |
| 4554 | return a.is_normal(context=self) |
| 4555 | |
| 4556 | def is_qnan(self, a): |
| 4557 | """Return True if the operand is a quiet NaN; otherwise return False. |