On Sat, 22 Sep 2007, 13stica wrote:

> Hi!
> 
> I think, I discover some sort of bug... can anyone confirm that?
> 
> I have form, on form is button and on click go this code:
> 
> var sumasum:currency;
> begin
>   sumasum:=160.7972;
>   showmessage(currtostrf(sumasum,ffnumber,2));
> end;
> 
> result is 160.7:
> correct resoult is 160.80
> 
> this is on fpc 2.2.1, latest from svn and latest lazarus from svn, on linux

It was indeed a bug (carry not taken into account correctly). I fixed it.
Revision 8612 in SVN.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to