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.
2 parents cf4811a + 4c5d364 commit 7d94a2aCopy full SHA for 7d94a2a
src/index.js
@@ -6,8 +6,8 @@ for (var key in templates) {
6
}
7
8
function amount (amount, fee) {
9
- fee = parseFloat(fee, 10) * 100000000
10
- amount = parseFloat(amount, 10) * 100000000
+ fee = parseInt(parseFloat(fee) * 100000000, 10)
+ amount = parseInt(parseFloat(amount) * 100000000, 10)
11
return amount - fee
12
13
0 commit comments