7.4.3 Floating Point Objects

PyFloatObject
This subtype of PyObject represents a Python floating point object.

PyTypeObject PyFloat_Type
This instance of PyTypeObject represents the Python floating point type.

int PyFloat_Check(PyObject *p)
Returns true if its argument is a PyFloatObject.

PyObject* PyFloat_FromDouble(double v)

double PyFloat_AsDouble(PyObject *pyfloat)

double PyFloat_AS_DOUBLE(PyObject *pyfloat)


guido@python.org