gcc 2.95 doesn't have the <limits> header
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 7 Feb 2003 22:49:11 +0000 (22:49 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 7 Feb 2003 22:49:11 +0000 (22:49 +0000)
ginac/numeric.cpp

index e1156f061eb6409b017b9d19eed761999a413b12..0aeef27a69a6a9249712d6485f05e6cc6143437a 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdexcept>
 #include <string>
 #include <sstream>
 #include <stdexcept>
 #include <string>
 #include <sstream>
-#include <limits>
 
 #include "numeric.h"
 #include "ex.h"
 
 #include "numeric.h"
 #include "ex.h"
@@ -456,9 +455,9 @@ void numeric::print(const print_context & c, unsigned level) const
 
                // Set precision
                if (is_a<print_csrc_double>(c))
 
                // Set precision
                if (is_a<print_csrc_double>(c))
-                       c.s.precision(std::numeric_limits<double>::digits10 + 1);
+                       c.s.precision(16);
                else
                else
-                       c.s.precision(std::numeric_limits<float>::digits10 + 1);
+                       c.s.precision(7);
 
                if (this->is_real()) {
 
 
                if (this->is_real()) {