mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 17:49:07 +02:00
* print literal e/E in formatfloat if not followed by +/- (remaining part of
mantis #22290) git-svn-id: trunk@22248 -
This commit is contained in:
parent
e073bf3008
commit
193c7af57f
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -12789,6 +12789,7 @@ tests/webtbs/tw22154.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw2220.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2226.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2229.pp svneol=native#text/plain
|
||||
tests/webtbs/tw22290.pp svneol=native#text/plain
|
||||
tests/webtbs/tw22320.pp svneol=native#text/plain
|
||||
tests/webtbs/tw22326.pp svneol=native#text/plain
|
||||
tests/webtbs/tw22329.pp svneol=native#text/pascal
|
||||
|
@ -2064,7 +2064,11 @@ Var
|
||||
Inc(Fmt);
|
||||
End;
|
||||
End;
|
||||
End;
|
||||
End
|
||||
Else
|
||||
{ just e/E without subsequent +/- -> not exponential format,
|
||||
but we have to simply print e/E literally }
|
||||
ExpFmt:=0;
|
||||
End
|
||||
Else
|
||||
Inc(Fmt);
|
||||
|
7
tests/webtbs/tw22290.pp
Normal file
7
tests/webtbs/tw22290.pp
Normal file
@ -0,0 +1,7 @@
|
||||
uses
|
||||
SysUtils;
|
||||
|
||||
begin
|
||||
if formatfloat('0e',-1)<>'-1e' then
|
||||
halt(1);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user