Skip to content

Commit

Permalink
unit test rounding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hconn-riparian authored and W-A-James committed Aug 30, 2023
1 parent eeb0149 commit e265d73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/node/decimal128_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ describe('Decimal128', function () {

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

result = Decimal128.fromString('37.499999999999999196428571428571375');
expect(result.toString()).to.deep.equal('37.49999999999999919642857142857138');

// // Create decimal from string value 15E-6177
// result = Decimal128.fromString('15E-6177');
// bytes = Buffer.from(
Expand Down

0 comments on commit e265d73

Please sign in to comment.