aboutsummaryrefslogtreecommitdiff
path: root/cpp02/ex01/Fixed.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-10 12:01:44 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-10 12:01:44 +0100
commit18ca1fc67ccc7bf176287f7b2908a33a597ec67a (patch)
tree930e1604156d6b8957d8c01786a18f670a202bc3 /cpp02/ex01/Fixed.hpp
parent9dd7a48967f99793b818f7362ac8e95717186774 (diff)
downloadpiscine_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.hpp10
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();