On Wed, 12 Jun 2000 20:05:59 -0400, the world broke into rejoicing as
Terry Boldt <[EMAIL PROTECTED]>  said:
> An update on the failed comaprison to zero. Once the error was pointed out th
e
> 'fix' was simple:
> 
> change the comparison of '=' to 0.00 to '<'' 0.001. Thus the if clause now
> reads:
> 
>           (if (< (gnc:account-get-balance-at-date acct date #t) 0.001)
> 
> Works as expected now.  If other currencies have more decimal places, just
> increase the number of decimal places to one more than the currency used and
> the test should work as desired.

I suspect that you may want to toss in an (abs ) somewhere, lest the value
be -0.00001, and this be seen as off in the wrong direction...
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/>
People consistently decry  X for doing precisely what  it was designed
to do: provide a mechanism to allow *OTHERS* to build GUI systems.
-- John Stevens <[EMAIL PROTECTED]> 

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


Reply via email to