export const roundWithPrecision = (number, precision) => { const factor = Math.pow(10, precision); return Math.round(number * factor) / factor; }