Skip to content

Commit

Permalink
chore: use parseFloat func
Browse files Browse the repository at this point in the history
Signed-off-by: svetoslav-nikol0v <[email protected]>
  • Loading branch information
svetoslav-nikol0v committed Mar 11, 2024
1 parent 5c0f89b commit c084fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe("Transaction", function () {
const MAX = 100;

// Generate random float number between 0 and 100
const FLOAT_NUMBER = Number((Math.random() * MAX).toFixed(8));
const FLOAT_NUMBER = parseFloat((Math.random() * MAX).toFixed(8));

// Declare integer number from float number
const INTEGER_NUMBER = Math.floor(FLOAT_NUMBER);
Expand Down

0 comments on commit c084fd6

Please sign in to comment.