Test suite results for test file tbs/tb0185.pp

Test run data :

Run ID:
Operating system: wasi
Processor: wasm32
Version: 3.3.1
Fails/OK/Total: 275/8854/9129
Version: 3.3.1
Full version: 3.3.1-16504-gf356d8cc51
Comment: -n -vx -Adefault -CTnoexceptions -CTwasmthreads -Fd
Machine: cfarm14
Category: 1
SVN revisions: f356d8cc51:7d83cea8da:5769d737d1:fc1050a834
Submitter: muller
Date: 2024/09/26 20:18:00 <> 2024/09/25
Previous run: 0
Next run:

Hide skipped tests

Hide successful tests

Test file "tbs/tb0185.pp" information:

t_id 420
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
9496597661015615TrueFalseSuccessfully run

Record count: 1

No log of 1015615.

Source:

{ Old file: tbs0218.pp }
{ rounding errors with write/str (the bugs is fixed,    OK 0.99.11 (FK) }

Program Wrong_Output;
{}
Var r,rr,error:Extended;
    s:String;
    code : word;
{}
Begin
  Writeln('Size of Extended type (r)=',SizeOf(r),' bytes');
  r:=0.000058184639;
  Writeln('r=',r);
  Writeln('r=',r:16:13);
  Writeln('r=',r:15:12);
  Writeln('r=',r:14:11);
  Writeln('r=',r:13:10);
  Writeln('r=',r:12:9);
  Writeln('r=',r:11:8);
  Writeln('r=',r:10:7);
  Writeln('r=',r:9:6);
  Writeln('r=',r:8:5);
  Writeln('r=',r:7:4);
  Str(r,s);
  Writeln('r=',s,' (as string)');
  str(r,s);
  val(s,rr,code);
  { calculate maximum possible precision }
  if sizeof(extended) = 12 then
    error := exp(17*ln(10))
  else if sizeof(extended) = 10 then
    error := exp(17*ln(10))
  else if sizeof(extended) = 8 then
    error := exp(14*ln(10))
  else if sizeof(extended) = 4 then
    { the net may have to be 9 instead of 8, not sure }
    error := exp(8*ln(10))
  else
    begin
      Writeln('unknown extended type size!');
      halt(1)
    end;
  if abs(r-rr) > error then
    begin
      Writeln('r=',r);
      Writeln('is different from rr=',rr);
      halt(1);
    end;
End.

Link to SVN view of tbs/tb0185.pp source.