Ignore:
Timestamp:
11/18/02 10:46:48 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r1574 r1629  
    7070//   sqrt(x)   square root of x
    7171//   abs(x)    absolute value of x, |x|
     72//   floor(x)  round down to the nearest integer (floor(9.9)=9)
    7273//
    7374//
     
    227228    if (txt=="pow10") return kEPow10;
    228229    if (txt=="sgn")   return kESgn;
     230    if (txt=="floor") return kEFloor;
    229231    if (txt[0]=='-')  return kENegative;
    230232    if (txt[0]=='+')  return kEPositive;
     
    471473    case kENegative: return -val;
    472474    case kEPositive: return val;
     475    case kEFloor:    return floor(val);
    473476    case kENoop:     return val;
    474477    }
     
    553556    case kENegative: str += "-"    ; break;
    554557    case kEPositive: str += "+"    ; break;
     558    case kEFloor:    str += "floor"; break;
    555559    case kENoop:
    556560        break;
  • trunk/MagicSoft/Mars/mdata/MDataChain.h

    r1574 r1629  
    3838        kESgn,
    3939        kEPositive,
    40         kENegative
     40        kENegative,
     41        kEFloor
    4142    } OperatorType_t;
    4243
Note: See TracChangeset for help on using the changeset viewer.