UPDATE: negative rate

Vijay Vishvas Dharap vijay_dharap at infosys.com
Wed Mar 9 10:49:39 EST 2005

First of all sorry for sending 3 messages.

Ok let me clarify more.

I browsed fin.c file from cvs from src/calculation directory.

And I just used the functions[_fi_calc_interest and functions required
by it] listed there as I cannot use the whole application as its ported
only to linux.
Furthermore I converted the functions listed in that place into java
class for my work.

I have attached the code that I used in java. Only minimal changes were
done from actual C source code needed for compilation purposes.

Now when I use this function of rate and provide the specified values,
I get positive value of the rate.
But same values when given to VB function rate, gives me negative rate.
i.e. -1.98245150

Whenever the VB rate is giving positive values, the values by my rate
function matches with the VB rate function. But for negative values, I
don't get correct values.
Now probably I am clearer about discrepancy I am talking about.


> -----Original Message-----
> From: Ludovic Nicolle [mailto:lnicolle at chezludo.com]
> Sent: Wednesday, March 09, 2005 9:04 PM
> To: Vijay Vishvas Dharap
> Cc: Ludovic Nicolle
> Subject: 3 messages already
> Hi Vijay,
> your message got through to the gnucash list, please don't send it
> again.
> as for the answer, the question itself is not very clear so i don't
> know which functions you are talking about. So if you have to clarify
> things, please take the time to rewrite your mressage with better
> context and details, but send it only once.
> thank you.
> Ludo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RateTest.java
Type: application/octet-stream
Size: 4673 bytes
Desc: RateTest.java
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050309/8e1a6b85/RateTest.obj

More information about the gnucash-devel mailing list