Searched refs:is_infinite (Results 1 – 3 of 3) sorted by relevance
542 self.assertTrue(Decimal(float('inf')).is_infinite())543 self.assertTrue(Decimal(float('-inf')).is_infinite())1732 self.assertTrue(MyDecimal.from_float(float('inf')).is_infinite())1733 self.assertTrue(MyDecimal.from_float(float('-inf')).is_infinite())1923 d = c.is_infinite(Decimal(10))1924 self.assertEqual(c.is_infinite(10), d)1925 self.assertRaises(TypeError, c.is_infinite, '10')
2503 self.is_infinite() and other.is_infinite())3021 def is_infinite(self): member in Decimal4345 def is_infinite(self, a): member in Context4358 return a.is_infinite()
593 .. method:: is_infinite()1236 .. method:: is_infinite(x)