PyDocs

Nav

Numeric and Mathematical Modules

Decimal.same_quantum

decimal

method of Decimal
  • Decimal.same_quantum(other, context=None)
Test whether self and other have the same exponent or both are NaN.

This operation is unaffected by context and is quiet: no flags are
changed and no rounding is performed. As an exception, the C version
may raise InvalidOperation if the second operand cannot be converted
exactly.
0 Examples
No examples for decimal/Decimal.same_quantum.
See Also
No see-alsos for decimal/Decimal.same_quantum
0 Notes
No notes for Decimal.same_quantum