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

Method is_subnormal

Lib/_pydecimal.py:3117–3123  ·  view source on GitHub ↗

Return True if self is subnormal; otherwise return False.

(self, context=None)

Source from the content-addressed store, hash-verified

3115 return self._exp == 'N'
3116
3117 def is_subnormal(self, context=None):
3118 """Return True if self is subnormal; otherwise return False."""
3119 if self._is_special or not self:
3120 return False
3121 if context is None:
3122 context = getcontext()
3123 return self.adjusted() < context.Emin
3124
3125 def is_zero(self):
3126 """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