mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix for non-native currencies in parse_human.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user