/external/python/cpython3/Lib/test/ |
D | test_float.py | 319 self.assertIsInstance(float(0.5).__floor__(), int) 320 self.assertEqual(float(0.5).__floor__(), 0) 321 self.assertEqual(float(1.0).__floor__(), 1) 322 self.assertEqual(float(1.5).__floor__(), 1) 323 self.assertEqual(float(-0.5).__floor__(), -1) 324 self.assertEqual(float(-1.0).__floor__(), -1) 325 self.assertEqual(float(-1.5).__floor__(), -2) 326 self.assertEqual(float(1.23e167).__floor__(), 1.23e167) 327 self.assertEqual(float(-1.23e167).__floor__(), -1.23e167) 328 self.assertRaises(ValueError, float("nan").__floor__) [all …]
|
D | test_math.py | 535 def __floor__(self): member in MathTests.testFloor.TestFloor 538 def __floor__(self): member in MathTests.testFloor.FloatFloor 548 t.__floor__ = lambda *args: args
|
/external/python/cpython3/Lib/ |
D | numbers.py | 179 def __floor__(self): member in Real
|
D | fractions.py | 603 def __floor__(a): member in Fraction
|
D | _pydecimal.py | 1892 def __floor__(self): member in Decimal
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 286 self.assertEqual(math.floor(mock), mock.__floor__()) 312 self.assertEqual(math.floor(mock), mock.__floor__())
|
/external/python/cpython3/Doc/library/ |
D | fractions.rst | 153 .. method:: __floor__()
|
D | math.rst | 81 If *x* is not a float, delegates to ``x.__floor__()``, which should return an
|
D | unittest.mock.rst | 2014 * ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
|
/external/python/pyasn1/pyasn1/type/ |
D | univ.py | 228 def __floor__(self): member in Integer 1496 def __floor__(self): member in Real
|
/external/cronet/third_party/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 856 def __floor__(self): member in NonStandardInteger
|
/external/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 866 def __floor__(self): member in NonStandardInteger
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0a2.rst | 197 Added ``__floor__`` and ``__ceil__`` methods to float object. Patch by
|
/external/python/cpython2/Lib/test/ |
D | test_math.py | 413 t.__floor__ = lambda *args: args
|
/external/python/cpython3/Modules/ |
D | mathmodule.c | 1270 _Py_IDENTIFIER(__floor__); in math_floor()
|
/external/python/pyasn1/ |
D | CHANGES.rst | 402 (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
|
/external/python/cpython3/Doc/reference/ |
D | datamodel.rst | 2681 object.__floor__(self)
|
/external/python/cpython3/Misc/ |
D | HISTORY | 14203 - In the math module, correctly lookup __trunc__, __ceil__, and __floor__ as 16781 __floor__ and __trunc__, to give support for round, math.ceil,
|