Lines Matching refs:compare_total
2844 # the result. This is exactly the ordering used in compare_total.
2845 c = self.compare_total(other)
2879 c = self.compare_total(other)
2931 def compare_total(self, other, context=None):
3007 Like compare_total, but with operand's sign ignored and assumed to be 0.
3013 return s.compare_total(o)
3455 c = self.compare_total(other)
3485 c = self.compare_total(other)
4254 def compare_total(self, a, b):
4261 >>> ExtendedContext.compare_total(Decimal('12.73'), Decimal('127.9'))
4263 >>> ExtendedContext.compare_total(Decimal('-127'), Decimal('12'))
4265 >>> ExtendedContext.compare_total(Decimal('12.30'), Decimal('12.3'))
4267 >>> ExtendedContext.compare_total(Decimal('12.30'), Decimal('12.30'))
4269 >>> ExtendedContext.compare_total(Decimal('12.3'), Decimal('12.300'))
4271 >>> ExtendedContext.compare_total(Decimal('12.3'), Decimal('NaN'))
4273 >>> ExtendedContext.compare_total(1, 2)
4275 >>> ExtendedContext.compare_total(Decimal(1), 2)
4277 >>> ExtendedContext.compare_total(1, Decimal(2))
4281 return a.compare_total(b)
4286 Like compare_total, but with operand's sign ignored and assumed to be 0.