Returns whether the number is not actually one. 0 if a number 1 if NaN 2 if sNaN
(self)
| 669 | return cls(result) |
| 670 | |
| 671 | def _isnan(self): |
| 672 | """Returns whether the number is not actually one. |
| 673 | |
| 674 | 0 if a number |
| 675 | 1 if NaN |
| 676 | 2 if sNaN |
| 677 | """ |
| 678 | if self._is_special: |
| 679 | exp = self._exp |
| 680 | if exp == 'n': |
| 681 | return 1 |
| 682 | elif exp == 'N': |
| 683 | return 2 |
| 684 | return 0 |
| 685 | |
| 686 | def _isinfinity(self): |
| 687 | """Returns whether the number is infinite |
no outgoing calls
no test coverage detected