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

Method is_zero

Lib/_pydecimal.py:3128–3130  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

number_classMethod · 0.95
is_zeroMethod · 0.45
test_implicit_contextMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_implicit_contextMethod · 0.36