37 static const int fractionalBits = 8;
50 Fixed(
const float raw);
72 int toInt(
void)
const;
int toInt(void) const
Converts the fixed-point value to an integer value (truncates the fractional part).
int getRawBits(void) const
void setRawBits(int const raw)
Fixed(const Fixed &other)
Fixed & operator=(const Fixed &other)
Copy assignment operator.
float toFloat(void) const
Converts the fixed-point value to a floating-point value.
std::ostream & operator<<(std::ostream &o, const Fixed &fixed)
Overloads the output stream operator to insert the float representation of the fixed-point number int...