Returns whether the number is infinite 0 if finite or not a number 1 if +INF -1 if -INF
(self)
| 684 | return 0 |
| 685 | |
| 686 | def _isinfinity(self): |
| 687 | """Returns whether the number is infinite |
| 688 | |
| 689 | 0 if finite or not a number |
| 690 | 1 if +INF |
| 691 | -1 if -INF |
| 692 | """ |
| 693 | if self._exp == 'F': |
| 694 | if self._sign: |
| 695 | return -1 |
| 696 | return 1 |
| 697 | return 0 |
| 698 | |
| 699 | def _check_nans(self, other=None, context=None): |
| 700 | """Returns whether the number is not actually one. |
no outgoing calls
no test coverage detected