Lines Matching refs:next_toward
3438 def next_toward(self, other, context=None):
3468 'Infinite result from next_toward',
4839 def next_toward(self, a, b):
4850 >>> c.next_toward(Decimal('1'), Decimal('2'))
4852 >>> c.next_toward(Decimal('-1E-1007'), Decimal('1'))
4854 >>> c.next_toward(Decimal('-1.00000003'), Decimal('0'))
4856 >>> c.next_toward(Decimal('1'), Decimal('0'))
4858 >>> c.next_toward(Decimal('1E-1007'), Decimal('-100'))
4860 >>> c.next_toward(Decimal('-1.00000003'), Decimal('-10'))
4862 >>> c.next_toward(Decimal('0.00'), Decimal('-0.0000'))
4864 >>> c.next_toward(0, 1)
4866 >>> c.next_toward(Decimal(0), 1)
4868 >>> c.next_toward(0, Decimal(1))
4872 return a.next_toward(b, context=self)