Skip to content

Commit

Permalink
changed Math.floor to Math.round
Browse files Browse the repository at this point in the history
  • Loading branch information
jseims committed Mar 27, 2014
1 parent 4714b3c commit 54a485f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/wallet.js
Expand Up @@ -258,7 +258,7 @@ function WalletCtrl($scope, $rootScope, $http, $location, $routeParams, $log) {
if ($scope.to_amount == '"sweep"' || $scope.to_amount == 'sweep') {
sweep = true;
} else {
satoshis = Math.floor(parseFloat($scope.to_amount) * 100000000);
satoshis = Math.round(parseFloat($scope.to_amount) * 100000000);
}
if (sweep == true || satoshis > 0) {
$scope.send_error = null;
Expand Down

0 comments on commit 54a485f

Please sign in to comment.