diff options
Diffstat (limited to 'Client/Source/float2fixed/main.cpp')
-rw-r--r-- | Client/Source/float2fixed/main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Client/Source/float2fixed/main.cpp b/Client/Source/float2fixed/main.cpp new file mode 100644 index 0000000..5c4fa40 --- /dev/null +++ b/Client/Source/float2fixed/main.cpp @@ -0,0 +1,17 @@ +#include "fpm/include/fpm/fixed.hpp"
+#include "fpm/include/fpm/ios.hpp"
+#include <iostream>
+
+using namespace std;
+
+typedef fpm::fixed_16_16 fixed16;
+
+int main()
+{
+ fixed16 n = 0.95f;
+ cout << n.raw_value();
+
+ getchar();
+
+ return 0;
+}
\ No newline at end of file |