CPP02/ex00/inc/Fixed.hpp
2025-04-04 12:37:17 +02:00

28 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* Fixed.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/03/24 15:22:48 by whaffman #+# #+# */
/* Updated: 2025/04/04 12:17:35 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
class Fixed
{
public:
Fixed();
Fixed(const Fixed &fixed);
~Fixed();
Fixed &operator=(const Fixed &fixed);
int getRawBits(void) const;
void setRawBits(int const raw);
private:
int fixedPointValue;
static const int fractionalBits;
};