MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_zero

Method is_zero

tools/python-3.11.9-amd64/Lib/_pydecimal.py:3173–3175  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

3171 return self.adjusted() < context.Emin
3172
3173 def is_zero(self):
3174 """Return True if self is a zero; otherwise return False."""
3175 return not self._is_special and self._int == '0'
3176
3177 def _ln_exp_bound(self):
3178 """Compute a lower bound for the adjusted exponent of self.ln().

Callers 2

number_classMethod · 0.95
is_zeroMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected