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

Method is_subnormal

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

Return True if the operand is subnormal; otherwise return False. >>> c = ExtendedContext.copy() >>> c.Emin = -999 >>> c.Emax = 999 >>> c.is_subnormal(Decimal('2.50')) False >>> c.is_subnormal(Decimal('0.1E-999')) True >>> c.is

(self, a)

Source from the content-addressed store, hash-verified

4635 return a.is_snan()
4636
4637 def is_subnormal(self, a):
4638 """Return True if the operand is subnormal; otherwise return False.
4639
4640 >>> c = ExtendedContext.copy()
4641 >>> c.Emin = -999
4642 >>> c.Emax = 999
4643 >>> c.is_subnormal(Decimal('2.50'))
4644 False
4645 >>> c.is_subnormal(Decimal('0.1E-999'))
4646 True
4647 >>> c.is_subnormal(Decimal('0.00'))
4648 False
4649 >>> c.is_subnormal(Decimal('-Inf'))
4650 False
4651 >>> c.is_subnormal(Decimal('NaN'))
4652 False
4653 >>> c.is_subnormal(1)
4654 False
4655 """
4656 a = _convert_other(a, raiseit=True)
4657 return a.is_subnormal(context=self)
4658
4659 def is_zero(self, a):
4660 """Return True if the operand is a zero; otherwise return False.

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
is_subnormalMethod · 0.45

Tested by

no test coverage detected