Browse Source

* Fix floattostr in case decimalseparator differs from point

michael 7 years ago
parent
commit
8e325e7c49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/sysutils.pas

+ 1 - 1
packages/rtl/sysutils.pas

@@ -1434,7 +1434,7 @@ Begin
     Q := Length(Result);
     Q := Length(Result);
     while (Q > 0) and (Result[Q] = '0') do
     while (Q > 0) and (Result[Q] = '0') do
       Dec(Q);
       Dec(Q);
-    if Result[Q] = DS then
+    if Result[Q] = '.' then
       Dec(Q); { Remove trailing decimal point }
       Dec(Q); { Remove trailing decimal point }
     if (Q = 0) or ((Q=1) and (Result[1] = '-')) then
     if (Q = 0) or ((Q=1) and (Result[1] = '-')) then
       Result := '0'
       Result := '0'