mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 15:29:16 +02:00
parent
f273350fc6
commit
117774e006
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -7547,6 +7547,7 @@ tests/webtbs/tw7006.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7071.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7100.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7104.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7105.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7143.pp -text
|
||||
tests/webtbs/tw7161.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7195.pp svneol=native#text/plain
|
||||
|
@ -384,6 +384,7 @@ begin
|
||||
begin
|
||||
roundStr(temp,spos);
|
||||
d := frac(d);
|
||||
dec(currprec);
|
||||
end;
|
||||
{ calculate the necessary fractional digits }
|
||||
for fracCount := 1 to currPrec do
|
||||
|
19
tests/webtbs/tw7105.pp
Normal file
19
tests/webtbs/tw7105.pp
Normal file
@ -0,0 +1,19 @@
|
||||
var i:integer;
|
||||
H:single;
|
||||
s:string;
|
||||
|
||||
begin
|
||||
H:= 10;
|
||||
for i:=1 to 25 do
|
||||
begin
|
||||
str(H:8,s);
|
||||
if (s[1] <> ' ') or
|
||||
(length(s) <> 8) then
|
||||
begin
|
||||
writeln(s);
|
||||
halt(1);
|
||||
end;
|
||||
H:= H / 10.0;
|
||||
end;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user