mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 12:10:02 +02:00
fcl-js: write 1.20E1 as 1.2E1
git-svn-id: trunk@41387 -
This commit is contained in:
parent
8ee668ad05
commit
8569bd2bf6
@ -803,6 +803,15 @@ begin
|
||||
if (Code=0) and (D=AsNumber) then
|
||||
S:=S2;
|
||||
end;
|
||||
else
|
||||
if s[i-1]='0' then
|
||||
begin
|
||||
// 1.2340E...
|
||||
S2:=LeftStr(S,i-2)+copy(S,i,length(S));
|
||||
val(S2,D,Code);
|
||||
if (Code=0) and (D=AsNumber) then
|
||||
S:=S2;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
// chomp default exponent E+000
|
||||
|
Loading…
Reference in New Issue
Block a user