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

Method is_finite

Lib/_pydecimal.py:3084–3090  ·  view source on GitHub ↗

Return True if self is finite; otherwise return False. A Decimal instance is considered finite if it is neither infinite nor a NaN.

(self)

Source from the content-addressed store, hash-verified

3082 return True
3083
3084 def is_finite(self):
3085 """Return True if self is finite; otherwise return False.
3086
3087 A Decimal instance is considered finite if it is neither
3088 infinite nor a NaN.
3089 """
3090 return not self._is_special
3091
3092 def is_infinite(self):
3093 """Return True if self is infinite; otherwise return False."""

Callers 3

_isfiniteFunction · 0.45
is_finiteMethod · 0.45
test_implicit_contextMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_implicit_contextMethod · 0.36