mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-14 09:09:21 +02:00
* Fix floattostr in case decimalseparator differs from point
This commit is contained in:
parent
a75ff377bd
commit
8e325e7c49
@ -1434,7 +1434,7 @@ Begin
|
||||
Q := Length(Result);
|
||||
while (Q > 0) and (Result[Q] = '0') do
|
||||
Dec(Q);
|
||||
if Result[Q] = DS then
|
||||
if Result[Q] = '.' then
|
||||
Dec(Q); { Remove trailing decimal point }
|
||||
if (Q = 0) or ((Q=1) and (Result[1] = '-')) then
|
||||
Result := '0'
|
||||
|
Loading…
Reference in New Issue
Block a user