We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8b8df commit b7f31caCopy full SHA for b7f31ca
src/decimal128.ts
@@ -402,7 +402,7 @@ export class Decimal128 extends BSONValue {
402
endOfString = endOfString + 1;
403
}
404
405
- const roundDigit = parseInt(representation[firstNonZero + lastDigit + 1], 10);
+ const roundDigit = parseInt(representation[firstNonZero + endOfString + 1], 10);
406
let roundBit = 0;
407
408
if (roundDigit >= 5) {
0 commit comments