MCPcopy Index your code
hub / github.com/python/cpython / is_infinite

Method is_infinite

Lib/_pydecimal.py:3092–3094  ·  view source on GitHub ↗

Return True if self is infinite; otherwise return False.

(self)

Source from the content-addressed store, hash-verified

3090 return not self._is_special
3091
3092 def is_infinite(self):
3093 """Return True if self is infinite; otherwise return False."""
3094 return self._exp == 'F'
3095
3096 def is_nan(self):
3097 """Return True if self is a qNaN or sNaN; otherwise return False."""

Callers 7

same_quantumMethod · 0.95
is_infiniteMethod · 0.45
test_from_floatMethod · 0.45
test_divmodMethod · 0.45
check_ulpdiffMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_from_floatMethod · 0.36
test_divmodMethod · 0.36