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

Marcos Douglas md at delfire.net
Thu Mar 8 02:28:17 CET 2012

On Wed, Mar 7, 2012 at 7:43 PM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> On Wednesday, 7 March 2012, Zaher Dirkey <parmaja at gmail.com> wrote:
>> In accounting/financial systems there is Debit and Credit numbers it must
>> equal and Debit - Credit = 0, with this bug it fail.
>> I am an accountant and i know if there is 0.0001 diff in balance sheet, my
>> boss will fire me :P
> This is why our accounting app uses Integer math (and when stored in the
> database). Only when amounts are displayed to the user, do we convert the
> integer value to currency. This greatly reduced our calculation and rounding
> problems.

Integer math... what did you mean?

Marcos Douglas

More information about the fpc-pascal mailing list