[Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

Michael Van Canneyt michael at freepascal.org
Mon Sep 7 16:27:43 CEST 2015



On Mon, 7 Sep 2015, John Landmesser wrote:

> the  function FormatFloat delivers a bad formatted negative value with(!) the 
> dot from ThousandSeparator.
>
> In sysint.inc i found:
>
>   { Character that is put every 3 numbers in a currency }
>  ThousandSeparator : Char absolute DefaultFormatSettings.ThousandSeparator 
> *deprecated*;
>
> Does "*deprecated" *mean that this is no error and will not be fixed?

No. It means that you must use DefaultFormatSettings.ThousandSeparator instead of ThousandSeparator

Michael.




More information about the Lazarus mailing list