Changeset 1629 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 11/18/02 10:46:48 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r1574 r1629 70 70 // sqrt(x) square root of x 71 71 // abs(x) absolute value of x, |x| 72 // floor(x) round down to the nearest integer (floor(9.9)=9) 72 73 // 73 74 // … … 227 228 if (txt=="pow10") return kEPow10; 228 229 if (txt=="sgn") return kESgn; 230 if (txt=="floor") return kEFloor; 229 231 if (txt[0]=='-') return kENegative; 230 232 if (txt[0]=='+') return kEPositive; … … 471 473 case kENegative: return -val; 472 474 case kEPositive: return val; 475 case kEFloor: return floor(val); 473 476 case kENoop: return val; 474 477 } … … 553 556 case kENegative: str += "-" ; break; 554 557 case kEPositive: str += "+" ; break; 558 case kEFloor: str += "floor"; break; 555 559 case kENoop: 556 560 break; -
trunk/MagicSoft/Mars/mdata/MDataChain.h
r1574 r1629 38 38 kESgn, 39 39 kEPositive, 40 kENegative 40 kENegative, 41 kEFloor 41 42 } OperatorType_t; 42 43
Note:
See TracChangeset
for help on using the changeset viewer.