Using round instead. Should be slightly more accurate.
This commit is contained in:
parent
e06673b794
commit
27744c34da
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ function coinToDecimal(amount) {
|
|||
}
|
||||
|
||||
function decimalToCoin(amount) {
|
||||
return Math.ceil(amount * global.config.coin.sigDigits);
|
||||
return Math.round(amount * global.config.coin.sigDigits);
|
||||
}
|
||||
|
||||
function bitcoinDecimalToCoin(amount) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue