Convert a string or number to a floating point number, if possible.
|
|
__abs__(x)
x.__abs__() <==> abs(x) |
|
|
|
|
__add__(x,
y)
x.__add__(y) <==> x+y |
|
|
|
|
__coerce__(x,
y)
x.__coerce__(y) <==> coerce(x, y) |
|
|
|
|
__div__(x,
y)
x.__div__(y) <==> x/y |
|
|
|
|
__divmod__(x,
y)
x.__divmod__(y) <==> divmod(x, y) |
|
|
|
|
__eq__(x,
y)
x.__eq__(y) <==> x==y |
|
|
|
|
__float__(x)
x.__float__() <==> float(x) |
|
|
|
|
__floordiv__(x,
y)
x.__floordiv__(y) <==> x//y |
|
|
|
string
|
__format__(float,
format_spec)
float.__format__(format_spec) -> string |
|
|
|
|
__ge__(x,
y)
x.__ge__(y) <==> x>=y |
|
|
|
|
|
|
string
|
__getformat__(float,
typestr)
float.__getformat__(typestr) -> string |
|
|
|
|
|
|
|
__gt__(x,
y)
x.__gt__(y) <==> x>y |
|
|
|
|
|
|
|
__int__(x)
x.__int__() <==> int(x) |
|
|
|
|
__le__(x,
y)
x.__le__(y) <==> x<=y |
|
|
|
|
__long__(x)
x.__long__() <==> long(x) |
|
|
|
|
__lt__(x,
y)
x.__lt__(y) <==> x<y |
|
|
|
|
__mod__(x,
y)
x.__mod__(y) <==> x%y |
|
|
|
|
__mul__(x,
y)
x.__mul__(y) <==> x*y |
|
|
|
|
__ne__(x,
y)
x.__ne__(y) <==> x!=y |
|
|
|
|
__neg__(x)
x.__neg__() <==> -x |
|
|
|
a new object with type S, a subtype of T
|
__new__(T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
|
|
|
|
__nonzero__(x)
x.__nonzero__() <==> x != 0 |
|
|
|
|
__pos__(x)
x.__pos__() <==> +x |
|
|
|
|
__pow__(x,
y,
z=...)
x.__pow__(y[, z]) <==> pow(x, y[, z]) |
|
|
|
|
__radd__(x,
y)
x.__radd__(y) <==> y+x |
|
|
|
|
__rdiv__(x,
y)
x.__rdiv__(y) <==> y/x |
|
|
|
|
__rdivmod__(x,
y)
x.__rdivmod__(y) <==> divmod(y, x) |
|
|
|
|
|
|
|
__rfloordiv__(x,
y)
x.__rfloordiv__(y) <==> y//x |
|
|
|
|
__rmod__(x,
y)
x.__rmod__(y) <==> y%x |
|
|
|
|
__rmul__(x,
y)
x.__rmul__(y) <==> y*x |
|
|
|
|
__rpow__(y,
x,
z=...)
y.__rpow__(x[, z]) <==> pow(x, y[, z]) |
|
|
|
|
__rsub__(x,
y)
x.__rsub__(y) <==> y-x |
|
|
|
|
__rtruediv__(x,
y)
x.__rtruediv__(y) <==> y/x |
|
|
|
None
|
__setformat__(float,
typestr,
fmt)
float.__setformat__(typestr, fmt) -> None |
|
|
|
|
|
|
|
__sub__(x,
y)
x.__sub__(y) <==> x-y |
|
|
|
|
__truediv__(x,
y)
x.__truediv__(y) <==> x/y |
|
|
|
|
__trunc__(...)
Returns the Integral closest to x between 0 and x. |
|
|
|
(int, int)
|
|
|
|
conjugate(...)
Returns self, the complex conjugate of any float. |
|
|
|
float
|
fromhex(float,
string)
float.fromhex(string) -> float |
|
|
|
string
|
hex(float)
float.hex() -> string |
|
|
|
|
is_integer(...)
Returns True if the float is an integer. |
|
|
|
Inherited from object:
__delattr__,
__init__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|