diff options
Diffstat (limited to 'ratio.h')
| -rw-r--r-- | ratio.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2,7 +2,7 @@ #include <stdlib.h> #include <math.h> -typedef struct {long int n; long unsigned int d}rational; +typedef struct {bool s; unsigned long long n; unsigned long long d}rational; rational convert_int(int); @@ -20,4 +20,7 @@ rational absolute(rational); rational power(rational,unsigned int); + double to_double(rational); + +bool to_string(char*,rational r); |
