Home
last modified time | relevance | path

Searched refs:__ceil__ (Results 1 – 14 of 14) sorted by relevance

/third_party/python/Lib/test/
Dtest_float.py330 self.assertIsInstance(float(0.5).__ceil__(), int)
331 self.assertEqual(float(0.5).__ceil__(), 1)
332 self.assertEqual(float(1.0).__ceil__(), 1)
333 self.assertEqual(float(1.5).__ceil__(), 2)
334 self.assertEqual(float(-0.5).__ceil__(), 0)
335 self.assertEqual(float(-1.0).__ceil__(), -1)
336 self.assertEqual(float(-1.5).__ceil__(), -1)
337 self.assertEqual(float(1.23e167).__ceil__(), 1.23e167)
338 self.assertEqual(float(-1.23e167).__ceil__(), -1.23e167)
339 self.assertRaises(ValueError, float("nan").__ceil__)
[all …]
Dtest_math.py396 def __ceil__(self): member in MathTests.testCeil.TestCeil
399 def __ceil__(self): member in MathTests.testCeil.FloatCeil
409 t.__ceil__ = lambda *args: args
/third_party/python/Lib/
Dnumbers.py184 def __ceil__(self): member in Real
Dfractions.py500 def __ceil__(a): member in Fraction
D_pydecimal.py1907 def __ceil__(self): member in Decimal
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py287 self.assertEqual(math.ceil(mock), mock.__ceil__())
313 self.assertEqual(math.ceil(mock), mock.__ceil__())
/third_party/python/Doc/library/
Dfractions.rst163 .. method:: __ceil__()
Dmath.rst35 If *x* is not a float, delegates to ``x.__ceil__()``, which should return an
Dunittest.mock.rst2013 * ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
/third_party/protobuf/python/google/protobuf/internal/
Dtest_util.py853 def __ceil__(self): member in NonStandardInteger
/third_party/python/Modules/
Dmathmodule.c1195 _Py_IDENTIFIER(__ceil__); in math_ceil()
/third_party/python/Doc/reference/
Ddatamodel.rst2499 object.__ceil__(self)
/third_party/python/Misc/
DHISTORY14203 - In the math module, correctly lookup __trunc__, __ceil__, and __floor__ as
16780 - The Decimal module gained the magic methods __round__, __ceil__,
DNEWS3640 - bpo-38629: Added ``__floor__`` and ``__ceil__`` methods to float object.