diff --git a/src/addition.c b/src/addition.c index 6afc239..fcf652b 100644 --- a/src/addition.c +++ b/src/addition.c @@ -51,5 +51,7 @@ unsigned int e(unsigned int a) { // addition of two floating numbers float addition_float(float number1, float number2) { - return 0.0; + if (number2 == (float) 0.0) return number1; + else if (number1 == (float) 0.0) return number2; + return (float) 0.0; } \ No newline at end of file