|
From: adrian <ad...@sn...> - 2001-09-10 22:51:27
|
Dieter Simader wrote:
>
> This error is caused by how numbers are processed by your computer.
> Somewhere along the line your machine thinks that the result of adding
> 11.86 and 1.19 is 13.050000000001 and not 13.05 IMHO this should not
> happen but apparently it does.
>
> The workaround. In GL.pm add the following before line 77
>
> $debit = sprintf("%.2f", $debit);
> $credit = sprintf("%.2f", $credit);
>
Should this be included in all future versions? And are there any other
places where it may be necessary?
Adrian
--
Adrian Blake
Snowy Technology Pty Ltd
26b Bombala St
Cooma, NSW 2630
Ph 2-64-524338 mobile 0407 232 978
|