Home
last modified time | relevance | path

Searched refs:__float__ (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython2/Lib/
Dnumbers.py181 def __float__(self): member in Real
284 def __float__(self): member in Rational
376 def __float__(self): member in Integral
DUserString.py25 def __float__(self): return float(self.data) member in UserString
Ddecimal.py1580 def __float__(self): member in Decimal
/external/python/cpython2/Lib/test/
Dtest_cmath.py181 def __float__(self): member in CMathTests.test_user_object.FloatAndComplex
186 def __float__(self): member in CMathTests.test_user_object.FloatAndComplexOS
191 def __float__(self): member in CMathTests.test_user_object.JustFloat
194 def __float__(self): member in CMathTests.test_user_object.JustFloatOS
228 self.assertEqual(f(arg), f(arg.__float__()))
Dtest_float.py167 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo0
171 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo1
175 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo2
182 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo3
186 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo4
192 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooStr
196 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooUnicode
208 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo5
214 def __float__(self): member in GeneralFloatCases.test_floatconversion.F
Dtest_getargs2.py75 def __float__(self): member in Float
82 def __float__(self): member in FloatSubclass2
86 def __float__(self): member in BadFloat
90 def __float__(self): member in BadFloat2
94 def __float__(self): member in BadFloat3
Dtest_class.py100 def __float__(self, *args): member in AllTests
498 __float__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
Dtest_format.py329 def __float__(self): member in FormatTest.test_invalid_special_methods.X
Dtest_fractions.py44 def __float__(self): member in DummyFloat
85 def __float__(self): member in DummyRational
Dtest_binop.py66 def __float__(self): member in Rat
Dtest_math.py281 def __float__(self): member in MathTests.testCeil.TestCeil
405 def __float__(self): member in MathTests.testFloor.TestFloor
Dtest_complex.py360 def __float__(self): member in ComplexTest.test_constructor.float2
Dtest_builtin.py1296 def __float__(self): member in BuiltinTest.test_round.TestRound
1308 t.__float__ = lambda *args: args
/external/python/cpython2/Lib/ctypes/test/
Dtest_numbers.py110 def __float__(self): member in NumberTestCase.test_floats.FloatLike
121 def __float__(self): member in NumberTestCase.test_integers.FloatLike
/external/libmojo/third_party/markupsafe/
D__init__.py222 __float__ = lambda s: float(s.obj) member in _MarkupEscapeHelper
/external/python/cpython2/Doc/c-api/
Dfloat.rst56 *pyfloat* is not a Python floating point object but has a :meth:`__float__`
/external/python/cpython2/Demo/classes/
DComplex.py155 def __float__(self): member in Complex
Dbitvec.py329 def __float__(self): member in BitVec
/external/libmojo/third_party/jinja2/
Druntime.py497 __float__ = __complex__ = __pow__ = __rpow__ = \
/external/python/cpython2/Doc/library/
Dcmath.rst11 any Python object that has either a :meth:`__complex__` or a :meth:`__float__`
/external/deqp/modules/gles31/scripts/
Dgenutil.py279 def __float__(self): member in Scalar
/external/deqp/modules/gles3/scripts/
Dgenutil.py279 def __float__(self): member in Scalar
/external/python/cpython2/Misc/
Dcheatsheet1201 float(s) = __float__(s) complex(s) = __complex__(s)
DNEWS457 __str__, __trunc__, and __float__ returning instances of subclasses of
3631 - Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.
7520 - Issue #5759: float() didn't call __float__ on str subclasses.
10707 to the __float__() method. Therefore, the functions in the cmath
/external/python/cpython2/Doc/reference/
Ddatamodel.rst2203 object.__float__(self)

12