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

Method is_qnan

Lib/_pydecimal.py:3105–3107  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

3103 return context.Emin <= self.adjusted()
3104
3105 def is_qnan(self):
3106 """Return True if self is a quiet NaN; otherwise return False."""
3107 return self._exp == 'n'
3108
3109 def is_signed(self):
3110 """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