From 18ca1fc67ccc7bf176287f7b2908a33a597ec67a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 10 Nov 2020 12:01:44 +0100 Subject: Added more tests for cpp02/02 --- cpp02/ex01/Fixed.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'cpp02/ex01/Fixed.hpp') diff --git a/cpp02/ex01/Fixed.hpp b/cpp02/ex01/Fixed.hpp index 1f768f6..43edba2 100644 --- a/cpp02/ex01/Fixed.hpp +++ b/cpp02/ex01/Fixed.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 11:40:49 by charles #+# #+# */ -/* Updated: 2020/11/09 13:11:15 by cacharle ### ########.fr */ +/* Updated: 2020/11/10 10:02:06 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -27,13 +27,11 @@ public: Fixed(const int from); Fixed(const float from); - int getRawBits() const; - void setRawBits(int const raw); - int getRawBits() const; void setRawBits(int const raw); - float toFloat() const; - int toInt() const; + + float toFloat(void) const; // void asked by subject + int toInt(void) const; static int getFractionalBits(); -- cgit