From 95ace7dc598be3912feb0fa2f5fedb59d9ee0368 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 14 Nov 2013 15:36:21 -0700 Subject: Working on new division code. It's not better yet, but it almost works. --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index cd38438..50b143e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,10 +11,18 @@ #include using namespace Bu; +#define mathTestP( sc, anum, op, bnum, answ ) \ + Bu::println(">>%1<<").arg((Number(anum, sc) op Number(bnum, sc)).toString()) + int main( int argc, char *argv[] ) { try { + mathTestP( 5, "63.6", /, "504", "0.12619" ); + mathTestP( 5, "63.61", /, "504", "0.12621" ); + mathTestP( 7, "63.610123", /, "5041", "0.12621" ); + mathTestP( 7, "63.610123", /, "50412", "0.12621" ); +// return 0; Options opt( argc, argv ); println("CliC - 0.08"); -- cgit v1.2.3