0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Include/floatobject.h

21 lines
426 B
C
Raw Normal View History

1990-10-14 13:07:46 +01:00
/* Float object interface */
/*
floatobject represents a (double precision) floating point number.
*/
typedef struct {
OB_HEAD
double ob_fval;
} floatobject;
extern typeobject Floattype;
#define is_floatobject(op) ((op)->ob_type == &Floattype)
extern object *newfloatobject PROTO((double));
extern double getfloatvalue PROTO((object *));
/* Macro, trading safety for speed */
#define GETFLOATVALUE(op) ((op)->ob_fval)