29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Fixed.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/09 19:23:08 by adjoly #+# #+# */
|
|
/* Updated: 2024/11/19 11:47:29 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
class Fixed {
|
|
private:
|
|
int _number;
|
|
static const int _fractBit = 8;
|
|
public:
|
|
Fixed(void);
|
|
Fixed(const Fixed& cpy);
|
|
Fixed& operator=(const Fixed&);
|
|
|
|
~Fixed(void);
|
|
|
|
int getRawBits( void ) const;
|
|
void setRawBits( int const raw );
|
|
};
|