Skip to content

Commit 0614409

Browse files
author
farhadyasir
committed
fix: rm 0 check
1 parent 33d43d8 commit 0614409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

big.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
n = k - x.e;
270270

271271
// Round?
272-
if (x.c.length > ++k) round(x, n, rm || Big.RM);
272+
if (x.c.length > ++k) round(x, n, rm === undefined ? Big.RM : rm);
273273

274274
// toFixed: recalculate k as x.e may have changed if value rounded up.
275275
if (id == 2) k = x.e + n + 1;

0 commit comments

Comments
 (0)