From b62f87c9496cb38f9c49139386edf85d4fa14390 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 2 Dec 2021 21:07:58 +0800 Subject: *misc --- Client/Source/Phy2D/Tests/test_math.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Client/Source/Phy2D/Tests/test_math.cpp') 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 #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(); -- cgit v1.1-26-g67d0