mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Initial revision
This commit is contained in:
parent
c636014c43
commit
85a5fbbdfe
78 changed files with 13589 additions and 0 deletions
20
Include/floatobject.h
Normal file
20
Include/floatobject.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue