From 61b9ef4aa4c237614f1bf272f2f9749207c9757f Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sun, 30 Jun 2024 16:17:47 -0400 Subject: [PATCH] refactor: change >= to > --- src/number/round.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/number/round.ts b/src/number/round.ts index 233fd279..2ce92d3c 100644 --- a/src/number/round.ts +++ b/src/number/round.ts @@ -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.