{"version":3,"file":"floor.cjs","names":[],"sources":["../../src/number/floor.ts"],"sourcesContent":["/**\n * Rounds number down to precision.\n *\n * @param number - The number to round down\n * @param precision - The precision to round down to (default: 0)\n * @returns Returns the rounded down number\n *\n * @example\n * floor(4.006) // => 4\n * floor(4.006, 2) // => 4.00\n * floor(4060, -2) // => 4000\n */\nexport function floor(number: number, precision: number = 0): number {\n  const factor = Math.pow(10, precision);\n  return Math.floor(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"}