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

Method is_snan

Lib/_pydecimal.py:3116–3118  ·  view source on GitHub ↗

Return True if self is a signaling NaN; otherwise return False.

(self)

Source from the content-addressed store, hash-verified

3114 return self._sign == 1
3115
3116 def is_snan(self):
3117 """Return True if self is a signaling NaN; otherwise return False."""
3118 return self._exp == 'N'
3119
3120 def is_subnormal(self, context=None):
3121 """Return True if self is subnormal; otherwise return False."""

Callers 6

_compare_check_nansMethod · 0.95
__hash__Method · 0.95
__float__Method · 0.95
number_classMethod · 0.95
is_snanMethod · 0.45
test_implicit_contextMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_implicit_contextMethod · 0.36