/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Fixed.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 11:40:49 by charles #+# #+# */ /* Updated: 2020/11/09 13:10:35 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef FIXED_HPP # define FIXED_HPP # include class Fixed { public: Fixed(); Fixed(Fixed const& other); ~Fixed(); Fixed& operator=(Fixed const& other); int getRawBits() const; void setRawBits(int const raw); private: int m_value; static int const m_fractional_bits = 8; }; #endif