"use strict";
/**
 * 数值筛选工具函数
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleNumericComparison = handleNumericComparison;
/**
 * 处理数值比较
 */
function handleNumericComparison(rowValue, operator, filterValue) {
    const rowNumValue = Number(rowValue);
    const filterNumValue = Number(filterValue);
    switch (operator) {
        case 'eq':
            return rowNumValue === filterNumValue;
        case 'ne':
            return rowNumValue !== filterNumValue;
        case 'gt':
            return rowNumValue > filterNumValue;
        case 'gte':
            return rowNumValue >= filterNumValue;
        case 'lt':
            return rowNumValue < filterNumValue;
        case 'lte':
            return rowNumValue <= filterNumValue;
        default:
            return false;
    }
}
