creation d02 ex02

This commit is contained in:
hugogogo
2022-02-14 21:06:36 +01:00
parent 9036ded700
commit b08663e74e
9 changed files with 310 additions and 81 deletions

View File

@@ -3,6 +3,7 @@
#include <iostream>
#include <string>
#include <cmath>
class Fixed {
@@ -18,7 +19,7 @@ public:
int getRawBits(void) const;
void setRawBits(int const raw);
void toFloat(void) const;
float toFloat(void) const;
int toInt(void) const;
private:
@@ -29,4 +30,6 @@ private:
};
std::ostream & operator<<(std::ostream & out, Fixed const & fixed);
#endif