From c5338eb2a83c6e2ff4f9eaaa20dba632b8283660 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sat, 17 May 2014 00:21:21 -0300 Subject: [PATCH] fix sci notation --- lib/Rpc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Rpc.js b/lib/Rpc.js index 47ce37a..9f78c8d 100644 --- a/lib/Rpc.js +++ b/lib/Rpc.js @@ -30,6 +30,7 @@ Rpc._parseTxResult = function(info) { // Outputs => add total var valueOutSat = 0; info.vout.forEach( function(o) { + o.value = o.value.toFixed(8); valueOutSat += o.value * bitcore.util.COIN; delete o.scriptPubKey.hex; });