Searched refs:copy_sign (Results 1 – 4 of 4) sorted by relevance
/third_party/boost/boost/safe_numerics/ |
D | cpp.hpp | 78 using copy_sign = typename std::conditional< typedef 85 using integral_promotion = copy_sign<
|
/third_party/python/Lib/test/ |
D | test_decimal.py | 1511 d = Decimal(1).copy_sign(Decimal(-2)) 1512 self.assertEqual(Decimal(1).copy_sign(-2), d) 1513 self.assertRaises(TypeError, Decimal(1).copy_sign, '-2') 3057 d = c.copy_sign(Decimal(1), Decimal(-2)) 3058 self.assertEqual(c.copy_sign(1, -2), d) 3059 self.assertEqual(c.copy_sign(Decimal(1), -2), d) 3060 self.assertEqual(c.copy_sign(1, Decimal(-2)), d) 3061 self.assertRaises(TypeError, c.copy_sign, '1', -2) 3062 self.assertRaises(TypeError, c.copy_sign, 1, '-2') 4392 z = y.copy_sign(Decimal(1)) [all …]
|
/third_party/python/Lib/ |
D | _pydecimal.py | 3030 def copy_sign(self, other, context=None): member in Decimal 3564 return self.copy_sign(other) 4334 def copy_sign(self, a, b): member in Context 4356 return a.copy_sign(b)
|
/third_party/python/Doc/library/ |
D | decimal.rst | 551 .. method:: copy_sign(other, context=None) 556 >>> Decimal('2.3').copy_sign(Decimal('-1.5')) 1173 .. method:: copy_sign(x, y)
|