diff --git a/istl/io.hh b/istl/io.hh
index 3710ad3e5094ec11afdede00f98979a42a3cbed0..406e097bf21f037bc3b1360a6853963eb9385767 100644
--- a/istl/io.hh
+++ b/istl/io.hh
@@ -91,6 +91,7 @@ namespace Dune {
 
     // reset the output format
     s.flags(oldflags);
+    s.precision(oldprec);
   }
 
 
@@ -208,6 +209,7 @@ namespace Dune {
 
     // reset the output format
     s.flags(oldflags);
+    s.precision(oldprec);
   }
 
   /**