John Hasler <[EMAIL PROTECTED]> writes:
> I also suggest that you make it EPSILON instead of .001 and define
> EPSILON in some header file. Please don't hard code constants.
Actually, I'd much rather see something like a
(gnc:currency-zero? currency x)
that would know the appropriate epsilons in each case if we're really
going to cut things as close as 0.001. i.e. are 1/100ths the smallest
denomination in all currencies?
Alternately, we could just have a global gnc:*currency-zero-epsilon*
and set it to something *really* small like 0.0000000001 or whatever,
but then we should document this assumption pretty clearly.
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]