From 6aa468f174d44b797adfaafda31f17c7c1529e7b Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 26 Nov 2012 14:27:12 -0800 Subject: [PATCH] I think that comment belongs here. --- src/js/amount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/amount.js b/src/js/amount.js index 428115071..8921a5092 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -628,7 +628,7 @@ Amount.prototype.parse_native = function(j) { this._value = new BigInteger(m[2]); } else { - // Float notation + // Float notation : values multiplied by 1,000,000. var int_part = (new BigInteger(m[2])).multiply(consts.bi_xns_unit); var fraction_part = (new BigInteger(m[3])).multiply(new BigInteger(String(Math.pow(10, 1+consts.xns_precision-m[3].length)))); @@ -683,7 +683,7 @@ Amount.prototype.parse_value = function(j) { this.canonicalize(); } else if (d) { - // float notation : values multiplied by 1,000,000. + // float notation var integer = new BigInteger(d[2]); var fraction = new BigInteger(d[3]);