Fix for non-native currencies in parse_human.

This commit is contained in:
Stefan Thomas
2012-11-26 18:01:39 -08:00
parent 5c3ffb4fd3
commit e94765d0da

View File

@@ -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();