From 78dcc3729881bb6b3937da195bc070ca96cb049b Mon Sep 17 00:00:00 2001 From: biouman Date: Tue, 1 May 2001 12:08:10 +0000 Subject: *** empty log message *** --- include/scalaires.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include/scalaires.h') diff --git a/include/scalaires.h b/include/scalaires.h index a13b96a..fcd0b00 100644 --- a/include/scalaires.h +++ b/include/scalaires.h @@ -6,13 +6,18 @@ typedef struct { unsigned int denom; } rationnel; -rationnel rat_constr_zero(void); /* renvoie 0 */ +typedef enum typedisplay { + HEX, + DEC, + OCT, + FLT +} typedisplay; +extern typedisplay display; +rationnel rat_constr_zero(void); /* renvoie 0 */ rationnel rat_constr(int num, int denom); /* cree une fraction */ - rationnel rat_constr_from_double(double flt); /* cree une fraction a partir d un double */ - void rat_destruct(rationnel rat); /* destructeur */ double rat_to_double(rationnel rat); /* obtention du double correspondant a un rationnel */ rationnel rat_addition(rationnel rat1, rationnel rat2); /* addition */ -- cgit v1.2.3