MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_finite

Method is_finite

Lib/_pydecimal.py:3081–3087  ·  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

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

Callers 15

_isfiniteFunction · 0.45
is_finiteMethod · 0.45
test_implicit_contextMethod · 0.45
settimeoutMethod · 0.45
setdefaulttimeoutFunction · 0.45
bigint_to_finite_floatFunction · 0.45
round_float_digitsFunction · 0.45
hash_floatFunction · 0.45
pyobj_to_date_timeFunction · 0.45
pyobj_to_time_tFunction · 0.45
parse_join_timeoutMethod · 0.45
set_primitiveFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_implicit_contextMethod · 0.36
test_to_hexFunction · 0.36