From 55a3a871b816445401d584a6182ad0f8e5a640ba Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 22 Aug 2014 22:04:59 -0400 Subject: [PATCH] replace 32 bit op with toFixed --- js/controllers/send.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/controllers/send.js b/js/controllers/send.js index c2e9a039b..ad0350cf0 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('SendController', $scope.loading = true; var address = form.address.$modelValue; - var amount = (form.amount.$modelValue * config.unitToSatoshi) | 0; + var amount = parseInt((form.amount.$modelValue * config.unitToSatoshi).toFixed(0)); var commentText = form.comment.$modelValue; var w = $rootScope.wallet;