- print 0 without parens.
[ginac.git] / ginac / numeric.cpp
index 8c80e9417800f671db988a6789d8f6db15997c52..e5611eaf808f5d6b43cea22ea1a0068ddb10cc6e 100644 (file)
@@ -410,7 +410,7 @@ void numeric::print(ostream & os, unsigned upper_precedence) const
     debugmsg("numeric print", LOGLEVEL_PRINT);
     if (this->is_real()) {
         // case 1, real:  x  or  -x
-        if ((precedence<=upper_precedence) && (!this->is_pos_integer())) {
+        if ((precedence<=upper_precedence) && (!this->is_nonneg_integer())) {
             os << "(";
             print_real_number(os, The(cl_R)(*value));
             os << ")";