<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
ok , you are right, but see the problem: a negative value contains
the thousandseperator where there is no value >1000<br>
<br>
example:<br>
<br>
thousandseperator := '|';<br>
<br>
FormatFloat('#,##.00', -10);<br>
<br>
result:<br>
<b>|</b>-10,00<br>
<br>
<div class="moz-cite-prefix">On 07.09.2015 17:14, Werner Pamler
wrote:<br>
</div>
<blockquote cite="mid:55EDA9BF.4000502@freenet.de" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<blockquote cite="mid:55ED9DE6.3070407@gmx.de" type="cite"> the
function FormatFloat delivers a bad formatted negative value
with(!) the dot from ThousandSeparator.<br>
<br>
In sysint.inc i found:<br>
<br>
{ Character that is put every 3 numbers in a currency }<br>
ThousandSeparator : Char absolute
DefaultFormatSettings.ThousandSeparator <b>deprecated</b>;<br>
</blockquote>
<br>
The format '#,##0.00' means: Format the number with two decimal
places, even if it is an integer. Replace the dot by
DefaultFormatSettings.DecimalSeparator. If the number is greater
than 1000 (or less than -1000) add a thousand separator, replace
the comma by the DefaultFormatSettings.ThousandSeparator. The '#'
identifies optional digits which will be shown only when needed.
The '0' identifies digits which will be shown even if the
corresponding digit would be 0 (i.e. if the format string were
'0,000.00' then the number 12 would be displayed as '0.012,00' if
DecimalSeparator is '.' and ThousandSeparator is '.').<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>