Returns whether the number is infinite 0 if finite or not a number 1 if +INF -1 if -INF
(self)
| 740 | return 0 |
| 741 | |
| 742 | def _isinfinity(self): |
| 743 | """Returns whether the number is infinite |
| 744 | |
| 745 | 0 if finite or not a number |
| 746 | 1 if +INF |
| 747 | -1 if -INF |
| 748 | """ |
| 749 | if self._exp == 'F': |
| 750 | if self._sign: |
| 751 | return -1 |
| 752 | return 1 |
| 753 | return 0 |
| 754 | |
| 755 | def _check_nans(self, other=None, context=None): |
| 756 | """Returns whether the number is not actually one. |
no outgoing calls
no test coverage detected