diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-10 12:01:44 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-10 12:01:44 +0100 |
| commit | 18ca1fc67ccc7bf176287f7b2908a33a597ec67a (patch) | |
| tree | 930e1604156d6b8957d8c01786a18f670a202bc3 /cpp02/ex01/Fixed.hpp | |
| parent | 9dd7a48967f99793b818f7362ac8e95717186774 (diff) | |
| download | piscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.tar.gz piscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.tar.bz2 piscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.zip | |
Added more tests for cpp02/02
Diffstat (limited to 'cpp02/ex01/Fixed.hpp')
| -rw-r--r-- | cpp02/ex01/Fixed.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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(); |
