__builtin__.float

Module __builtin__ :: Class float |
[show private | hide private]
[frames | no frames]

## Type float

    object --+
             |
            float

float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

Method Summary
| ``__abs__`(x)` x.__abs__() <==> abs(x)
| ``__add__`(x, y)` x.__add__(y) <==> x+y
| ``__cmp__`(x, y)` x.__cmp__(y) <==> cmp(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) <==> xdivmod(x, y)y
| ``__float__`(x)` x.__float__() <==> float(x)
| ``__floordiv__`(x, y)` x.__floordiv__(y) <==> x//y
| ``__getattribute__`(...)` x.__getattribute__('name') <==> x.name
| `__getnewargs__(...)`
| ``__hash__`(x)` x.__hash__() <==> hash(x)
| ``__int__`(x)` x.__int__() <==> int(x)
| ``__long__`(x)` x.__long__() <==> long(x)
| ``__mod__`(x, y)` x.__mod__(y) <==> x%y
| ``__mul__`(x, y)` x.__mul__(y) <==> x*y
| ``__neg__`(x)` x.__neg__() <==> -x
| ``__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) <==> ydivmod(y, x)x
| ``__repr__`(x)` x.__repr__() <==> repr(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
| ``__str__`(x)` x.__str__() <==> str(x)
| ``__sub__`(x, y)` x.__sub__(y) <==> x-y
| ``__truediv__`(x, y)` x.__truediv__(y) <==> x/y
Inherited from object
| ``__init__`(...)` x.__init__(...) initializes x; see x.__class__.__doc__ for signature
| ``__delattr__`(...)` x.__delattr__('name') <==> del x.name
| ``__reduce__`(...)` helper for pickle
| ``__reduce_ex__`(...)` helper for pickle
| ``__setattr__`(...)` x.__setattr__('name', value) <==> x.name = value

Method Details

    ### __abs__(x) x.__abs__() <==> abs(x) Returns:
        abs(x)

    ### __add__(x, y) (Addition operator) x.__add__(y) <==> x+y Returns:
        x+y

    ### __cmp__(x, y) (Comparison operator) x.__cmp__(y) <==> cmp(x,y) Returns:
        cmp(x,y)

    ### __coerce__(x, y) x.__coerce__(y) <==> coerce(x, y) Returns:
        coerce(x, y)

    ### __div__(x, y) x.__div__(y) <==> x/y Returns:
        x/y

    ### __divmod__(x, y) x.__divmod__(y) <==> xdivmod(x, y)y Returns:
        xdivmod(x, y)y

    ### __float__(x) x.__float__() <==> float(x) Returns:
        float(x)

    ### __floordiv__(x, y) x.__floordiv__(y) <==> x//y Returns:
        x//y

### __getattribute__(...) x.__getattribute__('name') <==> x.name Overrides: `__builtin__.object.__getattribute__`

    ### __hash__(x) (Hashing function) x.__hash__() <==> hash(x) Returns:
        hash(x)
Overrides: `__builtin__.object.__hash__`

    ### __int__(x) x.__int__() <==> int(x) Returns:
        int(x)

    ### __long__(x) x.__long__() <==> long(x) Returns:
        long(x)

    ### __mod__(x, y) x.__mod__(y) <==> x%y Returns:
        x%y

    ### __mul__(x, y) x.__mul__(y) <==> x*y Returns:
        x*y

    ### __neg__(x) x.__neg__() <==> -x Returns:
        -x

    ### __new__(T, S, ...) T.__new__(S, ...) -> a new object with type S, a subtype of T Returns:
        a new object with type S, a subtype of T
Overrides: `__builtin__.object.__new__`

    ### __nonzero__(x) (Boolean test operator) x.__nonzero__() <==> x != 0 Returns:
        x != 0

    ### __pos__(x) x.__pos__() <==> +x Returns:
        +x

    ### __pow__(x, y, z=...) x.__pow__(y[, z]) <==> pow(x, y[, z]) Returns:
        pow(x, y[, z])

    ### __radd__(x, y) (Right-side addition operator) x.__radd__(y) <==> y+x Returns:
        y+x

    ### __rdiv__(x, y) x.__rdiv__(y) <==> y/x Returns:
        y/x

    ### __rdivmod__(x, y) x.__rdivmod__(y) <==> ydivmod(y, x)x Returns:
        ydivmod(y, x)x

    ### __repr__(x) (Representation operator) x.__repr__() <==> repr(x) Returns:
        repr(x)
Overrides: `__builtin__.object.__repr__`

    ### __rfloordiv__(x, y) x.__rfloordiv__(y) <==> y//x Returns:
        y//x

    ### __rmod__(x, y) x.__rmod__(y) <==> y%x Returns:
        y%x

    ### __rmul__(x, y) x.__rmul__(y) <==> y*x Returns:
        y*x

    ### __rpow__(y, x, z=...) y.__rpow__(x[, z]) <==> pow(x, y[, z]) Returns:
        pow(x, y[, z])

    ### __rsub__(x, y) x.__rsub__(y) <==> y-x Returns:
        y-x

    ### __rtruediv__(x, y) x.__rtruediv__(y) <==> y/x Returns:
        y/x

    ### __str__(x) (Informal representation operator) x.__str__() <==> str(x) Returns:
        str(x)
Overrides: `__builtin__.object.__str__`

    ### __sub__(x, y) (Subtraction operator) x.__sub__(y) <==> x-y Returns:
        x-y

    ### __truediv__(x, y) x.__truediv__(y) <==> x/y Returns:
        x/y

Generated by Epydoc 2.1 on Wed Jun 14 14:32:46 2006 | http://epydoc.sf.net