export function roundNumber(value: number, precision = 0): number { const factor = 10 ** precision; return Math.round(value * factor) / factor; }