Searched refs:floordiv (Results 1 – 18 of 18) sorted by relevance
/third_party/python/Objects/ |
D | floatobject.c | 636 _float_div_mod(double vx, double wx, double *floordiv, double *mod) in _float_div_mod() argument 662 *floordiv = floor(div); in _float_div_mod() 663 if (div - *floordiv > 0.5) { in _float_div_mod() 664 *floordiv += 1.0; in _float_div_mod() 669 *floordiv = copysign(0.0, vx / wx); /* zero w/ sign of vx/wx */ in _float_div_mod() 677 double mod, floordiv; in float_divmod() local 684 _float_div_mod(vx, wx, &floordiv, &mod); in float_divmod() 685 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod() 692 double mod, floordiv; in float_floor_div() local 699 _float_div_mod(vx, wx, &floordiv, &mod); in float_floor_div() [all …]
|
/third_party/python/Lib/test/ |
D | test_abstract_numbers.py | 38 self.assertRaises(TypeError, operator.floordiv, c1, c2)
|
D | test_operator.py | 172 self.assertRaises(TypeError, operator.floordiv, 5) 173 self.assertRaises(TypeError, operator.floordiv, None, None) 174 self.assertEqual(operator.floordiv(5, 2), 2)
|
D | datetimetester.py | 20 from operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod 940 self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)
|
/third_party/python/Lib/ |
D | operator.py | 83 def floordiv(a, b): function 426 __floordiv__ = floordiv
|
D | fractions.py | 523 __floordiv__, __rfloordiv__ = _operator_fallbacks(_floordiv, operator.floordiv)
|
/third_party/node/deps/v8/third_party/jinja2/ |
D | sandbox.py | 280 "//": operator.floordiv,
|
D | nodes.py | 19 "//": operator.floordiv,
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | sandbox.py | 255 '//': operator.floordiv,
|
D | nodes.py | 30 '//': operator.floordiv,
|
/third_party/skia/third_party/externals/jinja2/ |
D | sandbox.py | 280 "//": operator.floordiv,
|
D | nodes.py | 19 "//": operator.floordiv,
|
/third_party/jinja2/ |
D | sandbox.py | 208 "//": operator.floordiv,
|
D | nodes.py | 23 "//": operator.floordiv,
|
/third_party/python/Doc/library/ |
D | operator.rst | 104 .. function:: floordiv(a, b) 381 | Division | ``a // b`` | ``floordiv(a, b)`` |
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 760 return NonStandardInteger(operator.floordiv(self.val, y)) 802 return NonStandardInteger(operator.floordiv(y, self.val))
|
/third_party/python/Doc/howto/ |
D | functional.rst | 1088 * Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, ``abs()``, ...
|
/third_party/python/Misc/ |
D | HISTORY | 24490 module provides truediv() and floordiv() functions. Augmented
|