import digits from './const/const_digit'; function isNumeric(str) { return !isNaN(Number(str)); } function toFixed(value, bit) { if (!isNumeric(value) || !isNumeric(bit)) return value; const num = Math.pow(10, bit); return Math.round(value * num) / num; } export { digits, toFixed };