Browse Source

addition addition_float base case 0+number=number

master
Dennis Sperzel 11 months ago
parent
commit
677a3b6e9e
  1. 4
      src/addition.c

4
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;
}
Loading…
Cancel
Save