[fpc-devel] FormatFloat bug

Yury Sidorov jura at cp-lab.com
Wed May 30 12:48:32 CEST 2007


From: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
> On 5/30/07, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>>
>> var
>>    c: currency;
>> begin
>>    c:=0.005;
>>    writeln(c:0:2);
>> end.
>>
>> writes 0.01. So it's probably a bug in one of the umpteen sysutils
>> float formatting "helpers" (and if someone fixes it, please take 
>> into
>
>
> Yeah, that outputs the correct value here as well.  Confirmed a bug 
> then!

Currency to string conversion is handled in other way that float 
types. In original example extended type was used....

Yury, 



More information about the fpc-devel mailing list