diff options
author | Mike Buland <mike@xagasoft.com> | 2013-11-14 15:36:21 -0700 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-11-14 15:36:21 -0700 |
commit | 95ace7dc598be3912feb0fa2f5fedb59d9ee0368 (patch) | |
tree | 42a92d71a22ed40397b41301fbfb71173c6e6334 /src/main.cpp | |
parent | abe7e449143052b07fae688da690c2a7d387a291 (diff) | |
download | clic-95ace7dc598be3912feb0fa2f5fedb59d9ee0368.tar.gz clic-95ace7dc598be3912feb0fa2f5fedb59d9ee0368.tar.bz2 clic-95ace7dc598be3912feb0fa2f5fedb59d9ee0368.tar.xz clic-95ace7dc598be3912feb0fa2f5fedb59d9ee0368.zip |
Working on new division code.newdiv
It's not better yet, but it almost works.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
11 | #include <bu/streamstack.h> | 11 | #include <bu/streamstack.h> |
12 | using namespace Bu; | 12 | using namespace Bu; |
13 | 13 | ||
14 | #define mathTestP( sc, anum, op, bnum, answ ) \ | ||
15 | Bu::println(">>%1<<").arg((Number(anum, sc) op Number(bnum, sc)).toString()) | ||
16 | |||
14 | int main( int argc, char *argv[] ) | 17 | int main( int argc, char *argv[] ) |
15 | { | 18 | { |
16 | try | 19 | try |
17 | { | 20 | { |
21 | mathTestP( 5, "63.6", /, "504", "0.12619" ); | ||
22 | mathTestP( 5, "63.61", /, "504", "0.12621" ); | ||
23 | mathTestP( 7, "63.610123", /, "5041", "0.12621" ); | ||
24 | mathTestP( 7, "63.610123", /, "50412", "0.12621" ); | ||
25 | // return 0; | ||
18 | Options opt( argc, argv ); | 26 | Options opt( argc, argv ); |
19 | 27 | ||
20 | println("CliC - 0.08"); | 28 | println("CliC - 0.08"); |