[fpc-devel] FormatFloat

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Dec 30 15:27:36 CET 2009

On 30 Dec 2009, at 16:20, darekm at emadar.com wrote:

> I try to resolve http://bugs.freepascal.org/view.php?id=15308
> problem is with str
>  str(1.0:10,s); writeln(s);
>  str(1.05:10,s);writeln(s);
>  str(1.05e2,s);writeln(s);
> give results (:
> 1.000E+00
> 1.0E+0000
>  1.050000000000000E+0002
> ^^// moving
> where I can find implementation of str

str_real in rtl/inc/real2str.inc. Make sure to do a test suite run after changing anything in that code, because there are a lot of things that can go wrong there (and which have gone wrong in the past).


More information about the fpc-devel mailing list