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

Method is_subnormal

Lib/_pydecimal.py:3120–3126  ·  view source on GitHub ↗

Return True if self is subnormal; otherwise return False.

(self, context=None)

Source from the content-addressed store, hash-verified

3118 return self._exp == 'N'
3119
3120 def is_subnormal(self, context=None):
3121 """Return True if self is subnormal; otherwise return False."""
3122 if self._is_special or not self:
3123 return False
3124 if context is None:
3125 context = getcontext()
3126 return self.adjusted() < context.Emin
3127
3128 def is_zero(self):
3129 """Return True if self is a zero; otherwise return False."""

Callers 5

number_classMethod · 0.95
test_none_argsMethod · 0.95
is_subnormalMethod · 0.45
test_named_parametersMethod · 0.45
test_implicit_contextMethod · 0.45

Calls 2

adjustedMethod · 0.95
getcontextFunction · 0.85

Tested by 3

test_none_argsMethod · 0.76
test_named_parametersMethod · 0.36
test_implicit_contextMethod · 0.36