Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-08 Thread Marcos Douglas
On Thu, Mar 8, 2012 at 4:41 AM, Graeme Geldenhuys wrote: > On 8 March 2012 03:28, Marcos Douglas wrote: >> >> Integer math... what did you mean? > > Over the years we have experience many problems with currency, > floating point and date/time calculations and storage. So we tweaked > our software

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-08 Thread Graeme Geldenhuys
On 8 March 2012 14:14, Marcos Douglas wrote: > > So, if you have two values to storage (amount of decimals is 4) e.g. > 100.34524 and 2,000.2 you do: > 100.34524 = 1003452 > 2,000.2 = 20002000 Correct. We then implemented our own function [eg: M2AmountToCurr() ] which formats such a number [only