From 27744c34da9bb5bdba080f0d363ff0d210091a55 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Thu, 16 Feb 2017 07:33:43 -0800 Subject: [PATCH] Using round instead. Should be slightly more accurate. --- lib/support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/support.js b/lib/support.js index c1e3293..6ecaec0 100644 --- a/lib/support.js +++ b/lib/support.js @@ -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) {