Skip to content

Commit af952e6

Browse files
hconn-riparianW-A-James
authored andcommitted
fix rounding error
1 parent db2fc68 commit af952e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/decimal128.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ export class Decimal128 extends BSONValue {
434434
return new Decimal128(isNegative ? INF_NEGATIVE_BUFFER : INF_POSITIVE_BUFFER);
435435
}
436436
}
437+
} else {
438+
break;
437439
}
438440
}
439441
}

0 commit comments

Comments
 (0)