{"version":3,"file":"round.mjs","names":[],"sources":["../../src/number/round.ts"],"sourcesContent":["/**\n * Rounds number to precision.\n *\n * @param number - The number to round\n * @param precision - The precision to round to (default: 0)\n * @returns Returns the rounded number\n *\n * @example\n * round(4.006) // => 4\n * round(4.006, 2) // => 4.01\n * round(4060, -2) // => 4100\n */\nexport function round(number: number, precision: number = 0): number {\n  const factor = Math.pow(10, precision);\n  return Math.round(number * factor) / factor;\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,MAAM,QAAgB,YAAoB,GAAW;CACnE,MAAM,SAAS,KAAK,IAAI,IAAI,SAAS;CACrC,OAAO,KAAK,MAAM,SAAS,MAAM,IAAI;AACvC"}