export function precisionRound(number: number, precision = 2) { var factor = Math.pow(10, precision); return Math.round(number * factor) / factor; }