fractions.Decimal.__nonzero__

Decimal.__nonzero__()[source]

Return True if self is nonzero; otherwise return False.

NaNs and infinities are considered nonzero.