feat: finishing the ex02

This commit is contained in:
Raphael 2025-01-09 14:52:39 +01:00
parent 95fb804997
commit 1179527d22
7 changed files with 373 additions and 13 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/21 19:30:23 by rparodi #+# #+# */
/* Updated: 2024/12/23 17:37:34 by rparodi ### ########.fr */
/* Updated: 2024/12/27 13:50:06 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -22,12 +22,11 @@
Fixed(const int &integer);
Fixed(const float &floating);
~Fixed();
int getRawBits();
int getRawBits() const;
void setRawBits(const int value);
int toInt() const;
float toFloat() const;
Fixed & operator = (const Fixed &value);
friend std::ostream& operator<< (std::ostream &output, const Fixed &value);
private:
int _integer_value;
float _floating_value;