MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_nan

Method is_nan

tools/python-3.11.9-amd64/Lib/_pydecimal.py:3141–3143  ·  view source on GitHub ↗

Return True if self is a qNaN or sNaN; otherwise return False.

(self)

Source from the content-addressed store, hash-verified

3139 return self._exp == 'F'
3140
3141 def is_nan(self):
3142 """Return True if self is a qNaN or sNaN; otherwise return False."""
3143 return self._exp in ('n', 'N')
3144
3145 def is_normal(self, context=None):
3146 """Return True if self is a normal number; otherwise return False."""

Callers 7

__hash__Method · 0.95
as_integer_ratioMethod · 0.95
__round__Method · 0.95
__floor__Method · 0.95
__ceil__Method · 0.95
same_quantumMethod · 0.95
is_nanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected