carto/lib/less/tree.js

12 lines
214 B
JavaScript

var tree = exports;
tree.operate = function (op, a, b) {
switch (op) {
case '+': return a + b;
case '-': return a - b;
case '*': return a * b;
case '/': return a / b;
}
};