/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Fixed.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: dkaiser class Fixed { public: Fixed(void); Fixed(const int i); Fixed(const float f); Fixed(const Fixed &other); Fixed &operator=(const Fixed &other); ~Fixed(void); int getRawBits(void) const; void setRawBits(int const raw); int toInt(void) const; float toFloat(void) const; private: static const int fractional_bits = 8; int raw_value; }; std::ostream &operator<<(std::ostream &os, const Fixed &fixed); #endif