I'm working on a small programme to calculate my overdraft. Obviously, all the information is in negatives (minus figures), how can I convert these figures into 'positives?
All the solutions offered will result in changing a negative value to positive (as requested), but be aware that Squitty�s & mine will result in a positive number remaining positive, while the others will result in a negative value.
... and the downside of all figures becoming positive regardless of their original status is that any credit amounts will be indistinguishable from debits and will introduce errors to the calculation.
Yes, OK, this is getting a bit complicated. I have it already in negative, as you say, it's just I like to get things as near correct as I can (it's only a bit of a project after all). I'll have a look at it later. Cheers.
OK, ABS seems to be the way foreward. I'm going to proceed as follows: insert an extra column which will hold the absolute figures, which can be used for calculating the interest, then the original column will be left negative in the normal way (for viewing). Care will have to be taken when the 'balance' is a positive. But that's another formula!! Thanks