"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.processNumberValue = void 0;
function processNumberValue($element, value) {
    let data = Number.parseFloat(value);
    if (isNaN(data)) {
        // value is not a valid number
        if (value === '') {
            $element.value = '';
            data = 0;
        }
    }
    return data;
}
exports.processNumberValue = processNumberValue;
//# sourceMappingURL=processNumberValue.js.map