Index: trunk/MagicSoft/Mars/mdata/MDataChain.cc
===================================================================
--- trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 6577)
+++ trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 6831)
@@ -399,4 +399,7 @@
 void MDataChain::AddParenthesis(TString &test, const TString op) const
 {
+    // Signiture of an exponential number 1e12
+    static const TRegexp rexp("[.0123456789]e[+-][0123456789]");
+
     const TString low = op(1, op.Length());
     if (low.Length()==0)
@@ -425,4 +428,9 @@
             if (cnt>0 || low.First(check[i])<0)
                 continue;
+
+            // Check if operator belongs to an exponential number
+            const TString sub(check(i-2, 4));
+            if (!sub(rexp).IsNull())
+                continue;
             break;
         }
@@ -437,4 +445,9 @@
                 cnt--;
             if (cnt>0 || low.First(check[j])<0)
+                continue;
+
+            // Check if operator belongs to an exponential number
+            const TString sub(check(j-2, 4));
+            if (!sub(rexp).IsNull())
                 continue;
             break;
