Home | Trees | Indices | Help |
|
---|
|
object --+ | float
float(x) -> floating point number
Convert a string or number to a floating point number, if possible.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
None |
|
||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__getattribute__('name') <==> x.name
|
You probably don't want to use this function. It exists mainly to be used in Python's test suite. typestr must be 'double' or 'float'. This function returns whichever of 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the format of floating point numbers used by the C type named by typestr.
|
hash(x)
|
|
repr(x)
|
You probably don't want to use this function. It exists mainly to be used in Python's test suite. typestr must be 'double' or 'float'. fmt must be one of 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be one of the latter two if it appears to match the underlying C reality. Overrides the automatic determination of C-level floating point type. This affects how floats are converted to and from binary strings.
|
str(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Oct 28 14:16:12 2008 | http://epydoc.sourceforge.net |