Skip to content

Commit 6a8b8df

Browse files
hconn-riparianW-A-James
authored andcommitted
unit test rounding fix
1 parent af952e6 commit 6a8b8df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/node/decimal128_tests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ describe('Decimal128', function () {
477477

478478
expect(bytes).to.deep.equal(result.bytes);
479479

480+
result = Decimal128.fromString('37.499999999999999196428571428571375');
481+
expect(result.toString()).to.deep.equal('37.49999999999999919642857142857138');
482+
480483
// // Create decimal from string value 15E-6177
481484
// result = Decimal128.fromString('15E-6177');
482485
// bytes = Buffer.from(

0 commit comments

Comments
 (0)