"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clampPercent = void 0;
/**
 * Clamp percentage-like values to a safe 0-100 range.
 */
function clampPercent(value) {
    if (!Number.isFinite(value))
        return 0;
    return Math.max(0, Math.min(100, value));
}
exports.clampPercent = clampPercent;
//# sourceMappingURL=percentage.js.map