UNPKG

stone-kit

Version:
9 lines (8 loc) 227 B
function i(n) { if (n === "" || n === null || n === void 0) return ""; const e = (typeof n == "string" ? Number(n) : n) / 1e6; return (Math.ceil(e * 10) / 10).toFixed(1).replace(".0", ""); } export { i as sclMillion };