summaryrefslogtreecommitdiff
path: root/ratio.h
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2025-12-28 11:20:32 +0000
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:48 +0100
commit944f90c47ffcde862dfe5f258de0b1ebf229c20e (patch)
tree0d4ef7dd8a8b97c440dc6abec538403c5726d0fd /ratio.h
parente65748fa8908c46ae2e6af7ef63d28fb3427238d (diff)
Implement double arithmetic with error bounds.
Diffstat (limited to 'ratio.h')
-rw-r--r--ratio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratio.h b/ratio.h
index cf04c6c..56701f3 100644
--- a/ratio.h
+++ b/ratio.h
@@ -6,6 +6,8 @@ typedef struct {bool s; unsigned long long n; unsigned long long d;} rational;
rational convert_int(int);
+unsigned int to_exptype(unsigned int);
+
bool is_greater(rational,rational);
rational sum(rational,rational);