-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFixed.hpp
More file actions
32 lines (27 loc) · 1.17 KB
/
Fixed.hpp
File metadata and controls
32 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/12 11:43:54 by zelhajou #+# #+# */
/* Updated: 2024/06/12 11:48:16 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FIXED_HPP
#define FIXED_HPP
class Fixed
{
private:
int _fixedPointValue;
static const int _fractionalBits = 8;
public:
Fixed();
Fixed(const Fixed &other);
Fixed &operator=(const Fixed &other);
~Fixed();
int getRawBits(void) const;
void setRawBits(int const raw);
};
#endif