Browse Source

* fixed writing of comp and extended: the precision of comp was to little
while it was too high for extended

florian 25 years ago
parent
commit
aa3e0fbe87
1 changed files with 11 additions and 7 deletions
  1. 11 7
      rtl/inc/real2str.inc

+ 11 - 7
rtl/inc/real2str.inc

@@ -187,20 +187,20 @@ begin
       end;
       end;
     rt_s80real :
     rt_s80real :
       begin
       begin
-         maxlen:=26;
+         maxlen:=23;
          minlen:=10;
          minlen:=10;
          explen:=6;
          explen:=6;
          { correction used with comparing to avoid rounding/precision errors }
          { correction used with comparing to avoid rounding/precision errors }
-         roundCorr := (1/exp((26-6-3)*ln(10)));
+         roundCorr := (1/exp((23-6-3)*ln(10)));
       end;
       end;
     rt_c64bit  :
     rt_c64bit  :
       begin
       begin
-         maxlen:=22;
-         minlen:=9;
+         maxlen:=23;
+         minlen:=10;
          { according to TP (was 5) (FK) }
          { according to TP (was 5) (FK) }
          explen:=6;
          explen:=6;
          { correction used with comparing to avoid rounding/precision errors }
          { correction used with comparing to avoid rounding/precision errors }
-         roundCorr := (1/exp((22-6-3)*ln(10)));
+         roundCorr := (1/exp((23-6-3)*ln(10)));
       end;
       end;
     rt_f16bit  :
     rt_f16bit  :
       begin
       begin
@@ -399,7 +399,11 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.30  2000-03-26 11:36:28  jonas
+  Revision 1.31  2000-07-06 21:09:45  florian
+    * fixed writing of comp and extended: the precision of comp was to little
+      while it was too high for extended
+
+  Revision 1.30  2000/03/26 11:36:28  jonas
     + $maxfpuregisters 0 for i386 in systemh (to avoid requiring too much
     + $maxfpuregisters 0 for i386 in systemh (to avoid requiring too much
       empty FPU registers for sysstem routines
       empty FPU registers for sysstem routines
     * fixed bug in str_real when using :x:0
     * fixed bug in str_real when using :x:0
@@ -460,4 +464,4 @@ end;
   Revision 1.14  1999/08/03 21:58:44  peter
   Revision 1.14  1999/08/03 21:58:44  peter
     * small speed improvements
     * small speed improvements
 
 
-}
+}