On Wednesday, 7 March 2012, Zaher Dirkey <parm...@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.

Graeme.

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to