From 42e3afe750565ed6d91e9c1c4263c0d041a92a17 Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Mon, 5 Feb 2024 09:55:56 +0100 Subject: [PATCH] addition floating numbers base case 0+0=0 --- src/addition.c | 4 ++++ src/addition.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/addition.c b/src/addition.c index adfc3fe..0298801 100644 --- a/src/addition.c +++ b/src/addition.c @@ -22,4 +22,8 @@ unsigned int addition(num number1, num number2) { } return result; +} + +float addition_float(float a, float b) { + return 0.0; } \ No newline at end of file diff --git a/src/addition.h b/src/addition.h index a3b2b82..0898765 100644 --- a/src/addition.h +++ b/src/addition.h @@ -7,4 +7,6 @@ void full_adder (num* sum, num* nextcarry, num number1, num number2, num carry); unsigned int addition(num a, num b); +float addition_float(float a, float b); + #endif // ADDITION_H