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

Method is_normal

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

Return True if self is a normal number; otherwise return False.

(self, context=None)

Source from the content-addressed store, hash-verified

3143 return self._exp in ('n', 'N')
3144
3145 def is_normal(self, context=None):
3146 """Return True if self is a normal number; otherwise return False."""
3147 if self._is_special or not self:
3148 return False
3149 if context is None:
3150 context = getcontext()
3151 return context.Emin <= self.adjusted()
3152
3153 def is_qnan(self):
3154 """Return True if self is a quiet NaN; otherwise return False."""

Callers 1

is_normalMethod · 0.45

Calls 2

adjustedMethod · 0.95
getcontextFunction · 0.85

Tested by

no test coverage detected