[Lazarus] format problem
zeljko
zeljko at holobit.net
Thu Mar 11 12:32:29 CET 2010
On Thursday 11 March 2010 09:54, Andrea Mauri wrote:
> I have problems with format function.
> If I set:
> f:= -0.0002;
> and then I do:
> Edit1.Text:= FormatFloat('0.000', f);
> Edit2.Text:= format('%.0f', [f]);
> Edit3.Text:= format('%.3f', [f]);
> The results I obtain are:
> -0.000
> -0
> -0.000
> While they should be:
> 0.000
> 0
> 0.000
> I have to report a bug to mantis fpc-rtl?
no, it's already reported by me
http://bugs.freepascal.org/view.php?id=13722
More information about the Lazarus
mailing list