Home
last modified time | relevance | path

Searched refs:floordiv (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Objects/
Dfloatobject.c636 _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/
Dtest_abstract_numbers.py38 self.assertRaises(TypeError, operator.floordiv, c1, c2)
Dtest_operator.py172 self.assertRaises(TypeError, operator.floordiv, 5)
173 self.assertRaises(TypeError, operator.floordiv, None, None)
174 self.assertEqual(operator.floordiv(5, 2), 2)
Ddatetimetester.py20 from operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod
940 self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)
/third_party/python/Lib/
Doperator.py83 def floordiv(a, b): function
426 __floordiv__ = floordiv
Dfractions.py523 __floordiv__, __rfloordiv__ = _operator_fallbacks(_floordiv, operator.floordiv)
/third_party/node/deps/v8/third_party/jinja2/
Dsandbox.py280 "//": operator.floordiv,
Dnodes.py19 "//": operator.floordiv,
/third_party/node/tools/inspector_protocol/jinja2/
Dsandbox.py255 '//': operator.floordiv,
Dnodes.py30 '//': operator.floordiv,
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py280 "//": operator.floordiv,
Dnodes.py19 "//": operator.floordiv,
/third_party/jinja2/
Dsandbox.py208 "//": operator.floordiv,
Dnodes.py23 "//": operator.floordiv,
/third_party/python/Doc/library/
Doperator.rst104 .. function:: floordiv(a, b)
381 | Division | ``a // b`` | ``floordiv(a, b)`` |
/third_party/protobuf/python/google/protobuf/internal/
Dtest_util.py760 return NonStandardInteger(operator.floordiv(self.val, y))
802 return NonStandardInteger(operator.floordiv(y, self.val))
/third_party/python/Doc/howto/
Dfunctional.rst1088 * Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, ``abs()``, ...
/third_party/python/Misc/
DHISTORY24490 module provides truediv() and floordiv() functions. Augmented