Richard Wackerbarth <[EMAIL PROTECTED]> writes:

> I wouldn't worry too much about this approach. You will eventually
> come around to the realization that you MUST count everything in
> integers.

I presume from your example, you mean we need to use arbitrary
precision/rationals rather than just integers since in your example,
the cost was actually 33 1/3, which isn't representable as an integer.

If so, then that would be fine with me, but it's a much bigger change
than just trying to get things right on the scale I was suggesting,
and since we're using doubles, it doesn't seem to be a big deal, at
least in a case like this, though I definitely get your more general
point.

If we do decide we need to do something other than doubles, I suspect
we should just switch to gmp and forget about it.  It's well deployed,
apparently extremely fast, well designed, and I hear has some really
smart people behind it...

  $ dpkg --status libgmp2
  Package: libgmp2
  Status: install ok installed
  Priority: optional
  Section: libs
  Installed-Size: 173
  Maintainer: Dale Scheetz <[EMAIL PROTECTED]>
  Version: 2.0.2-6
  Replaces: gmp2, gmp
  Provides: gmp2
  Depends: libc6 (>= 2.1)
  Conflicts: gmp2, gmp, libgmp2-dev (<< 2.0.2-4)
  Description: Multiprecision arithmetic library
   GNU MP is a programmer's library for arbitrary precision
   arithmetic (ie, a bignum package).  It can operate on signed
   integer, rational, and floating point numeric types.
   .
   It has a rich set of functions, and the functions have a regular
   interface.
   .
   GNU MP is licenced under the GNU Library General Public Licence
   (LGPL).
   .
   The home page is; http://www.swox.com/gmp

-- 
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930

--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to