Home
last modified time | relevance | path

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

/external/python/cpython3/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
/external/python/cpython3/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
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py287 self.assertEqual(math.ceil(mock), mock.__ceil__())
313 self.assertEqual(math.ceil(mock), mock.__ceil__())
/external/python/cpython3/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__``
/external/python/mock/mock/tests/
Dtestmagicmethods.py343 self.assertEqual(math.ceil(mock), mock.__ceil__())
/external/python/pyasn1/pyasn1/type/
Duniv.py231 def __ceil__(self): member in Integer
1499 def __ceil__(self): member in Real
/external/protobuf/python/google/protobuf/internal/
Dtest_util.py853 def __ceil__(self): member in NonStandardInteger
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a2.rst197 Added ``__floor__`` and ``__ceil__`` methods to float object. Patch by
/external/python/cpython3/Modules/
Dmathmodule.c1195 _Py_IDENTIFIER(__ceil__); in math_ceil()
/external/python/cpython2/Lib/test/
Dtest_math.py289 t.__ceil__ = lambda *args: args
/external/python/pyasn1/
DCHANGES.rst402 (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2500 object.__ceil__(self)
/external/python/cpython3/Misc/
DHISTORY14203 - In the math module, correctly lookup __trunc__, __ceil__, and __floor__ as
16780 - The Decimal module gained the magic methods __round__, __ceil__,