From e94765d0da3e58da8315b27fda076760379a928b Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 26 Nov 2012 18:01:39 -0800 Subject: [PATCH] Fix for non-native currencies in parse_human. --- src/js/amount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/amount.js b/src/js/amount.js index 8921a5092..afb652f46 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -597,7 +597,7 @@ Amount.prototype.parse_human = function(j) { this._is_native = false; var multiplier = consts.bi_10.clone().pow(precision); - this._value = this._value.multiply(multiplier).add(fraction); + this._value = this._value.multiply(multiplier).add(new BigInteger(fraction)); this._offset = -precision; this.canonicalize();