Browse Source

* better fix than the one in r5920

git-svn-id: trunk@5926 -
Jonas Maebe 18 years ago
parent
commit
ab79ccf277
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/objpas/sysutils/sysstr.inc

+ 2 - 2
rtl/objpas/sysutils/sysstr.inc

@@ -1097,7 +1097,7 @@ const
   maxdigits = 17;
   maxdigits = 17;
   maxexplen = 4;
   maxexplen = 4;
 {$else}
 {$else}
-  maxdigits = 14;
+  maxdigits = 15;
   maxexplen = 3;
   maxexplen = 3;
 {$endif}
 {$endif}
 
 
@@ -1199,7 +1199,7 @@ Begin
         If (Precision = -1) Or (Precision > maxdigits) Then Precision := maxdigits;
         If (Precision = -1) Or (Precision > maxdigits) Then Precision := maxdigits;
         case ValueType of
         case ValueType of
           fvDouble:
           fvDouble:
-            Str(Double(Extended(Value)):Precision+8, Result);
+            Str(Double(Extended(Value)):Precision+7, Result);
           fvSingle:
           fvSingle:
             Str(Single(Extended(Value)):Precision+6, Result);
             Str(Single(Extended(Value)):Precision+6, Result);
           fvCurrency:
           fvCurrency: