Included "Mike's Arbitrary Precision Math Library" in DeskCalc (BSD style

license) and rebased the ExpressionParser from double on the MAPM data type.
Currently, the binary operators are not supported anymore, but the imprecise
calculations were getting on my nerves. I think a lot more neat functions
could now be supported, but I have not looked into it further. I also didn't
dare look closer at the C code of the library, but it seems to be well
tested. It's portable by all means, I guess even if the target platform has
8.3 char file names to hold the code... Luckily, the library inclused a C++
wrapper class for the data type (MAPM) which makes it fairly comfortable to
use and hides the ugly C stuff and messy memory management.

The result seems to be quite nice so far. Previously, I couldn't even calculate
my finances without eventually getting some rounding errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28506 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-11-04 20:47:41 +00:00
parent 07db0c6fd0
commit 8443d21cf8
47 changed files with 12299 additions and 166 deletions
+6
View File
@@ -762,6 +762,12 @@ AboutView::AboutView(const BRect &rect)
"Copyright " B_UTF8_COPYRIGHT " 1996-1997 Jeff Prosise. "
"All rights reserved.");
// MAPM (Mike's Arbitrary Precision Math Library) used by DeskCalc
AddCopyrightEntry("MAPM",
"Copyright " B_UTF8_COPYRIGHT "1999-2007 Michael C. Ring. "
"All rights reserved.",
"http://tc.umn.edu/~ringx004");
// OpenSound
// AddCopyrightEntry("OpenSound",
// "Copyright " B_UTF8_COPYRIGHT " 1996-2008 4Front Technologies ",