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

Method is_infinite

Lib/_pydecimal.py:3089–3091  ·  view source on GitHub ↗

Return True if self is infinite; otherwise return False.

(self)

Source from the content-addressed store, hash-verified

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

Callers 15

same_quantumMethod · 0.95
is_infiniteMethod · 0.45
test_from_floatMethod · 0.45
test_divmodMethod · 0.45
float_reprFunction · 0.45
format_floatMethod · 0.45
format_complex_floatMethod · 0.45
lt_intFunction · 0.45
gt_intFunction · 0.45
ulpFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_from_floatMethod · 0.36
test_divmodMethod · 0.36