Browse Source

addition read precision of a floating number

master
Dennis Sperzel 11 months ago
parent
commit
29d0070ef3
  1. 5
      src/addition.c
  2. 2
      src/addition.h

5
src/addition.c

@ -28,6 +28,11 @@ unsigned int s(unsigned int a) {
return a >> 31;
}
unsigned int m(unsigned int a) {
unsigned int num = 8388607;
return (a & num);
}
float addition_float(float a, float b) {
return 0.0;
}

2
src/addition.h

@ -9,6 +9,8 @@ unsigned int addition(num a, num b);
unsigned int s(unsigned int a);
unsigned int m(unsigned int a);
float addition_float(float a, float b);
#endif // ADDITION_H
Loading…
Cancel
Save