Skip to content

Commit 6bb7fd4

Browse files
committed
fix: round - correct pricision calculation
1 parent d463b0f commit 6bb7fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/round.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export function round(value: number, precision = 2): number {
2-
const multiplier = 10 ^ precision;
2+
const multiplier = 10 ** precision;
33
return Math.round(value * multiplier) / multiplier;
44
}

0 commit comments

Comments
 (0)