Index: trunk/MagicSoft/Mars/mdata/MDataChain.cc
===================================================================
--- trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 1574)
+++ trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 1629)
@@ -70,4 +70,5 @@
 //   sqrt(x)   square root of x
 //   abs(x)    absolute value of x, |x|
+//   floor(x)  round down to the nearest integer (floor(9.9)=9)
 //
 //
@@ -227,4 +228,5 @@
     if (txt=="pow10") return kEPow10;
     if (txt=="sgn")   return kESgn;
+    if (txt=="floor") return kEFloor;
     if (txt[0]=='-')  return kENegative;
     if (txt[0]=='+')  return kEPositive;
@@ -471,4 +473,5 @@
     case kENegative: return -val;
     case kEPositive: return val;
+    case kEFloor:    return floor(val);
     case kENoop:     return val;
     }
@@ -553,4 +556,5 @@
     case kENegative: str += "-"    ; break;
     case kEPositive: str += "+"    ; break;
+    case kEFloor:    str += "floor"; break;
     case kENoop:
         break;
Index: trunk/MagicSoft/Mars/mdata/MDataChain.h
===================================================================
--- trunk/MagicSoft/Mars/mdata/MDataChain.h	(revision 1574)
+++ trunk/MagicSoft/Mars/mdata/MDataChain.h	(revision 1629)
@@ -38,5 +38,6 @@
         kESgn,
         kEPositive,
-        kENegative
+        kENegative,
+        kEFloor
     } OperatorType_t;
 
