PyDocs

Nav

Numeric and Mathematical Modules

Decimal.normalize

decimal

method of Decimal
  • Decimal.normalize(context=None)
Normalize the number by stripping trailing 0s

This also change anything equal to 0 to 0e0.  Used for producing
canonical values for members of an equivalence class.  For example,
Decimal('32.100') and Decimal('0.321000e+2') both normalize to
the equivalent value Decimal('32.1').
0 Examples
No examples for decimal/Decimal.normalize.
See Also
No see-alsos for decimal/Decimal.normalize
0 Notes
No notes for Decimal.normalize