PyDocs

Nav

Numeric and Mathematical Modules

Decimal.number_class

decimal

method of Decimal
  • Decimal.number_class(context=None)
Return a string describing the class of the operand.

The returned value is one of the following ten strings:

    * '-Infinity', indicating that the operand is negative infinity.
    * '-Normal', indicating that the operand is a negative normal
      number.
    * '-Subnormal', indicating that the operand is negative and
      subnormal.
    * '-Zero', indicating that the operand is a negative zero.
    * '+Zero', indicating that the operand is a positive zero.
    * '+Subnormal', indicating that the operand is positive and
      subnormal.
    * '+Normal', indicating that the operand is a positive normal
      number.
    * '+Infinity', indicating that the operand is positive infinity.
    * 'NaN', indicating that the operand is a quiet NaN (Not a
      Number).
    * 'sNaN', indicating that the operand is a signaling NaN.
0 Examples
No examples for decimal/Decimal.number_class.
See Also
No see-alsos for decimal/Decimal.number_class
0 Notes
No notes for Decimal.number_class