Skip to content

Commit

Permalink
refactor: change >= to >
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 30, 2024
1 parent 9b9abea commit 61b9ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number/round.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function round(
// Limit precision according to the IEEE-754 standard. The intent
// here is to avoid NaN results.
const p =
precision >= 0 ? Math.min(precision, 292) : Math.max(precision, -323)
precision > 0 ? Math.min(precision, 292) : Math.max(precision, -323)

// By using exponential notation, we can avoid floating-point
// precision issues. The "q" is quantity, "e" is exponent.
Expand Down

0 comments on commit 61b9ef4

Please sign in to comment.