for no display the zeros in a polynom 88/16388/3
Sylvain GENIN [Tue, 21 Apr 2015 12:38:04 +0000 (14:38 +0200)]
z=poly(0,"z")

Change-Id: Ie436129fcb9e5f61a091cda35f3cc27a4d68113b

scilab/modules/ast/src/cpp/types/singlepoly.cpp

index 484bb2b..a540bf7 100644 (file)
@@ -366,7 +366,7 @@ void SinglePoly::toStringInternal(double *_pdblVal, wstring _szVar, list<wstring
     int iLastFlush = 2;
     for (int i = 0 ; i < m_iSize ; i++)
     {
-        //if (isRealZero(_pdblVal[i]) == false)
+        if (_pdblVal[i] != 0)
         {
             DoubleFormat df;
             getDoubleFormat(_pdblVal[i], &df);