aboutsummaryrefslogtreecommitdiff
path: root/Client/Source/Phy2D/Tests/test_math.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-12-02 21:07:58 +0800
committerchai <chaifix@163.com>2021-12-02 21:07:58 +0800
commitb62f87c9496cb38f9c49139386edf85d4fa14390 (patch)
tree73862c5d4a25213db9c7db90610289251ef10c75 /Client/Source/Phy2D/Tests/test_math.cpp
parentfdd228071a3112aeebda20766c7df3b20b8651aa (diff)
*misc
Diffstat (limited to 'Client/Source/Phy2D/Tests/test_math.cpp')
-rw-r--r--Client/Source/Phy2D/Tests/test_math.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Client/Source/Phy2D/Tests/test_math.cpp b/Client/Source/Phy2D/Tests/test_math.cpp
index f88170d..36e834c 100644
--- a/Client/Source/Phy2D/Tests/test_math.cpp
+++ b/Client/Source/Phy2D/Tests/test_math.cpp
@@ -4,17 +4,18 @@
#include <iostream>
#include "../Common/Math.h"
+#include "../Common/Settings.h"
#include "fix32/fix32.hpp"
-using namespace std;
+using namespace Phy2D;
int main(int argc, char **argv)
{
- Fix32 a = 1.3;
- Fix32 b = 2.4;
- Fix32 c = a * b;
+ fixed32 a = 1111.33333;
+ fixed32 b = 23333.44444;
+ fixed32 c = a / b;
- cout << (double)c;
+ std::cout << (double)c;
getchar();