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

Method is_qnan

Lib/_pydecimal.py:3108–3110  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

3106 return context.Emin <= self.adjusted()
3107
3108 def is_qnan(self):
3109 """Return True if self is a quiet NaN; otherwise return False."""
3110 return self._exp == 'n'
3111
3112 def is_signed(self):
3113 """Return True if self is negative; otherwise return False."""

Callers 6

_compare_check_nansMethod · 0.95
number_classMethod · 0.95
is_qnanMethod · 0.45
test_from_floatMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_from_floatMethod · 0.36