mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 08:47:49 +02:00
* Fix bug in FormatFloat: missing thousand sep when no decimal separator present. Patch by Bruno Fierens
This commit is contained in:
parent
fa3016bc4b
commit
9141c50a2c
@ -1633,6 +1633,8 @@ Begin
|
||||
if (Result<>'') and (Result[1]=' ') then
|
||||
Delete(Result,1,1);
|
||||
P:=Pos('.',Result);
|
||||
if (P<=0) then
|
||||
P:=Length(Result)+1;
|
||||
Result:=ReplaceDecimalSep(Result,DS);
|
||||
Dec(P,3);
|
||||
if (TS<>'') and (TS<>#0) then
|
||||
|
Loading…
Reference in New Issue
Block a user