source: vendor/python/2.5/Include/floatobject.h@ 3232

Last change on this file since 3232 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 4.1 KB
Line 
1
2/* Float object interface */
3
4/*
5PyFloatObject represents a (double precision) floating point number.
6*/
7
8#ifndef Py_FLOATOBJECT_H
9#define Py_FLOATOBJECT_H
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct {
15 PyObject_HEAD
16 double ob_fval;
17} PyFloatObject;
18
19PyAPI_DATA(PyTypeObject) PyFloat_Type;
20
21#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
22#define PyFloat_CheckExact(op) ((op)->ob_type == &PyFloat_Type)
23
24/* Return Python float from string PyObject. Second argument ignored on