fractions.Decimal.is_canonical

Decimal.is_canonical()[source]

Return True if self is canonical; otherwise return False.

Currently, the encoding of a Decimal instance is always canonical, so this method returns True for any Decimal.