Having problem to monetary-collector
26 Feb 2002 11:11:47 -0600
On Tue, 2002-02-26 at 10:15, Derek Atkins wrote:
> IMHO this is a bug (or at least a misfeature) in the gnc-numeric:
> addition and subtraction have to be done in a common demoninator, as
> opposed to having the system create the LCD.
In what sense is this a bug or misfeature? the gnc-numeric API just
provides the mechanism to do the math; the calling code specifies if it
wants to have the denominator automatically computed or not.
> There are two sets of
> 'add' and 'subtract' functions -- the fixed versions assume that the
> denominators are already the same, the other versions require you to
> supply your result denominator.
Don't forget that the denominator you supply can be GNC_DENOM_AUTO, in
which case you have several options as to how to automatically compute
The *_fixed API is a convenience for the case of collecting currency
values; it *is* an error to try to use different denominators in some
cases. If that's not the situation that you are in, then use the general
API and don't specify the flags that cause errors to be raised on
I suspect that the currency collector
> is using the 'fixed' version and your test case is breaking that
> assumption by supplying a different denominator.
> FTR, I ran into this problem on the C side a few months ago.
> > Christian
> Derek Atkins
> Computer and Internet Security Consultant
> email@example.com www.ihtfp.com
> gnucash-devel mailing list