From d78cc5836306c3231bb958bffe88ce54c898b512 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Thu, 15 Jan 2026 21:17:07 +0100 Subject: Introduce is_greater_certainly and is_greater_possibly to make more robust the printing and finding of records. Start reorganizing to allow eventual printing of all records. --- double.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'double.c') diff --git a/double.c b/double.c index d7f140f..1ad289f 100644 --- a/double.c +++ b/double.c @@ -11,7 +11,9 @@ double sum(double d1, double d2){ return d1+d2; } double difference(double d1, double d2){ return d1-d2; } -bool is_greater(double d1, double d2){ return (d1 > d2); } +bool is_greater_certainly(double d1, double d2){ return (d1 > d2); } + +bool is_greater_possibly(double d1, double d2){ return is_greater_certainly(d1,d2); } double maximum(double d1, double d2){ if(d1>d2) return d1; -- cgit v1.2.3