Fract = 8
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/09/10 00:54:53 by tigos #+# #+# */
|
/* Created: 2025/09/10 00:54:53 by tigos #+# #+# */
|
||||||
/* Updated: 2025/09/10 11:00:19 by aortigos ### ########.fr */
|
/* Updated: 2025/09/10 21:56:47 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ class Fixed
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int value;
|
int value;
|
||||||
static const int fract;
|
static const int fract = 8;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Default constructor
|
// Default constructor
|
||||||
@@ -35,8 +35,10 @@ class Fixed
|
|||||||
// Destructor
|
// Destructor
|
||||||
~Fixed();
|
~Fixed();
|
||||||
|
|
||||||
|
// getRawBits
|
||||||
int getRawBits( void ) const;
|
int getRawBits( void ) const;
|
||||||
|
|
||||||
|
// setRawBits
|
||||||
void setRawBits( int const raw );
|
void setRawBits( int const raw );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user