Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-10 Thread Eric Bonney
Thanks everyone for the patience and the help, I think I have a fairly good grasp now on what changes I need to make to get things rolling again. It is quit shameful the amount of basic math skills you lose when you don't use them, but that is an entirely different story. :) Thomas: Thanks for th

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-10 Thread Mikael Kujanpää
On 10.10.2012 1:49, Eric Bonney wrote: I cant figure out how you jumped from the 12352/100 to 6266/50 The correct number is 12532, not 12352. So, 12532 / 2 results 6266. -- Mikki ___ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-09 Thread Thomas Baumgart
Eric, basically, Allen explained the math behind the operation, and we all remember it from school: reducing a fraction. (More inline). On Tuesday 09 October 2012 17:11:42 you wrote: > Hi Thomas: > > Thanks for taking the time to give me such a detailed explanation! Can you > maybe walk me thr

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-09 Thread Allan
On 09/10/12 23:49, Eric Bonney wrote: Thanks Allan, I can easily just leave it at say -123.32/100 and it will work too but was hoping to work more like KMM and I can't figure out how you jumped from the 12352/100 to 6266/50 then down to 3133/25. Did you just get the GCD and then divide by that?

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-09 Thread Eric Bonney
Thanks Allan, I can easily just leave it at say -123.32/100 and it will work too but was hoping to work more like KMM and I can't figure out how you jumped from the 12352/100 to 6266/50 then down to 3133/25. Did you just get the GCD and then divide by that? Eric On Oct 9, 2012 5:44 PM, "Allan"

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-09 Thread Allan
On 09/10/12 22:11, Eric Bonney wrote: Hi Thomas: Thanks for taking the time to give me such a detailed explanation! Can you maybe walk me through a few examples that I can try and use as a reference? I finally can see that what I should have been doing from the start is take the fraction that is

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-09 Thread Eric Bonney
Hi Thomas: Thanks for taking the time to give me such a detailed explanation! Can you maybe walk me through a few examples that I can try and use as a reference? I finally can see that what I should have been doing from the start is take the fraction that is stored in the balance column and just d

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-06 Thread Thomas Baumgart
Eric, On Friday 05 October 2012 13:48:20 you wrote: > Hi Thomas: > > Actually that was the function that I was looking at and referring to. I > tried looking at it but I'll be honest, I am struggling trying to figure > out just what exactly it is doing. > > I see it takes in a String value curr

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-05 Thread Eric Bonney
Hi Thomas: Actually that was the function that I was looking at and referring to. I tried looking at it but I'll be honest, I am struggling trying to figure out just what exactly it is doing. I see it takes in a String value currency, which I am assuming is the constant defined somewhere for the

Re: [Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-05 Thread Thomas Baumgart
Eric, On Thursday 04 October 2012 12:05:05 Eric Bonney wrote: > So after working with Martin and doing some testing of a build trying to > use EURO instead of USD a number of poor design choices have come to light. > I am trying to work through them and hopefully make the app more > international

[Kmymoney-devel] [Android Port] Help with computing the account balance

2012-10-04 Thread Eric Bonney
So after working with Martin and doing some testing of a build trying to use EURO instead of USD a number of poor design choices have come to light. I am trying to work through them and hopefully make the app more international friendly in the process. One of the choices that I made early on was t