ajout max for fixed point range
This commit is contained in:
@@ -8,21 +8,24 @@ class Fixed {
|
||||
|
||||
public:
|
||||
|
||||
Fixed( void ); // default/parametric constructor
|
||||
Fixed( Fixed const & src ); // copy constructor
|
||||
~Fixed( void ); // destructor
|
||||
Fixed( int integer);
|
||||
Fixed( float const floater );
|
||||
Fixed(void); // default/parametric constructor
|
||||
Fixed(Fixed const & src); // copy constructor
|
||||
~Fixed(void); // destructor
|
||||
Fixed(int integer);
|
||||
Fixed(float const floater);
|
||||
|
||||
Fixed & operator=( Fixed const & rhs ); // assignement operator
|
||||
Fixed & operator=(Fixed const & rhs); // assignement operator
|
||||
|
||||
int getRawBits( void ) const;
|
||||
void setRawBits( int const raw );
|
||||
int getRawBits(void) const;
|
||||
void setRawBits(int const raw);
|
||||
void toFloat(void) const;
|
||||
int toInt(void) const;
|
||||
|
||||
private:
|
||||
|
||||
int _value;
|
||||
static int const _frac = 8;
|
||||
static int const _frac;
|
||||
static int const _max;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user