[fpc-pascal] Currency and ABS(-674.59)
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Mar 7 23:43:58 CET 2012
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.
Graeme.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120308/28d84b32/attachment.html>
More information about the fpc-pascal
mailing list