[fpc-devel] FormatFloat bug
Michael Van Canneyt
michael at freepascal.org
Wed May 30 15:19:10 CEST 2007
On Wed, 30 May 2007, Graeme Geldenhuys wrote:
> On 5/30/07, Yury Sidorov <jura at cp-lab.com> wrote:
> > > 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, you are right! I never spotted that, thanks.
>
> Running the example program below shows the difference in output. The
> currency type rounds to 0.01 and the extended type rounds to 0.00.
> Either way, I still believe this is a bug in FormatFloat.
Please put it in the bugtracker, so it won't be forgotten.
Michael.
More information about the fpc-devel
mailing list