Browse Source

addition floating numbers base case 0+0=0

master
Dennis Sperzel 11 months ago
parent
commit
42e3afe750
  1. 4
      src/addition.c
  2. 2
      src/addition.h

4
src/addition.c

@ -22,4 +22,8 @@ unsigned int addition(num number1, num number2) {
} }
return result; return result;
}
float addition_float(float a, float b) {
return 0.0;
} }

2
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); unsigned int addition(num a, num b);
float addition_float(float a, float b);
#endif // ADDITION_H #endif // ADDITION_H
Loading…
Cancel
Save