We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20cba36 commit 0a049b9Copy full SHA for 0a049b9
src/utils/round.ts
@@ -1,4 +1,4 @@
1
export function round(value: number, precision = 2): number {
2
- const multiplier = 10 ^ precision;
+ const multiplier = 10 ** precision;
3
return Math.round(value * multiplier) / multiplier;
4
}
0 commit comments