mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
Jesus Reyes) git-svn-id: trunk@13028 -
This commit is contained in:
parent
10158da60e
commit
e8edc31a89
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8823,6 +8823,7 @@ tests/webtbs/tw13456.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1348.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1351.pp svneol=native#text/plain
|
||||
tests/webtbs/tw13536.pp svneol=native#text/plain
|
||||
tests/webtbs/tw13552.pp svneol=native#text/plain
|
||||
tests/webtbs/tw13553.pp svneol=native#text/plain
|
||||
tests/webtbs/tw13563.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1364.pp svneol=native#text/plain
|
||||
|
@ -1369,7 +1369,8 @@ Begin
|
||||
Dec(P, 3);
|
||||
While (P > 1) Do
|
||||
Begin
|
||||
If Result[P - 1] <> '-' Then Insert(FormatSettings.ThousandSeparator, Result, P);
|
||||
If (Result[P - 1] <> '-') And (FormatSettings.ThousandSeparator <> #0) Then
|
||||
Insert(FormatSettings.ThousandSeparator, Result, P);
|
||||
Dec(P, 3);
|
||||
End;
|
||||
End;
|
||||
@ -1401,7 +1402,8 @@ Begin
|
||||
Dec(P, 3);
|
||||
While (P > 1) Do
|
||||
Begin
|
||||
Insert(FormatSettings.ThousandSeparator, Result, P);
|
||||
If FormatSettings.ThousandSeparator<>#0 Then
|
||||
Insert(FormatSettings.ThousandSeparator, Result, P);
|
||||
Dec(P, 3);
|
||||
End;
|
||||
|
||||
@ -1954,7 +1956,7 @@ Var
|
||||
End;
|
||||
',':
|
||||
Begin
|
||||
thousand := True;
|
||||
thousand := DefaultFormatSettings.ThousandSeparator<>#0;
|
||||
Inc(Fmt);
|
||||
End;
|
||||
'e', 'E':
|
||||
|
13
tests/webtbs/tw13552.pp
Normal file
13
tests/webtbs/tw13552.pp
Normal file
@ -0,0 +1,13 @@
|
||||
uses
|
||||
sysutils;
|
||||
|
||||
var
|
||||
s: ansistring;
|
||||
begin
|
||||
ThousandSeparator:=#0;
|
||||
DecimalSeparator:='.';
|
||||
s:=formatfloat('#,0.00',1000.0);
|
||||
writeln(s);
|
||||
if (s<>'1000.00') then
|
||||
halt(1);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user