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

Method is_zero

Lib/_pydecimal.py:3125–3127  ·  view source on GitHub ↗

Return True if self is a zero; otherwise return False.

(self)

Source from the content-addressed store, hash-verified

3123 return self.adjusted() < context.Emin
3124
3125 def is_zero(self):
3126 """Return True if self is a zero; otherwise return False."""
3127 return not self._is_special and self._int == '0'
3128
3129 def _ln_exp_bound(self):
3130 """Compute a lower bound for the adjusted exponent of self.ln().

Callers 15

number_classMethod · 0.95
is_zeroMethod · 0.45
test_implicit_contextMethod · 0.45
getrandbitsMethod · 0.45
sock_wait_for_io_implMethod · 0.45
send_tls_outputMethod · 0.45
ssl_readFunction · 0.45
ssl_writeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_implicit_contextMethod · 0.36