Home | History | Annotate | Download | only in python2.7

Lines Matching defs:normalize

2397     def normalize(self, context=None):
2398 """Normalize- strip trailing 0s, change anything equal to 0 to 0e0"""
4874 def normalize(self, a):
4875 """normalize reduces an operand to its simplest form.
4880 >>> ExtendedContext.normalize(Decimal('2.1'))
4882 >>> ExtendedContext.normalize(Decimal('-2.0'))
4884 >>> ExtendedContext.normalize(Decimal('1.200'))
4886 >>> ExtendedContext.normalize(Decimal('-120'))
4888 >>> ExtendedContext.normalize(Decimal('120.00'))
4890 >>> ExtendedContext.normalize(Decimal('0.00'))
4892 >>> ExtendedContext.normalize(6)
4896 return a.normalize(context=self)