We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 040d07c commit d37269eCopy full SHA for d37269e
lib/market_helper.coffee
@@ -51,7 +51,7 @@ MarketHelper =
51
!!CURRENCIES[currency]
52
53
toBignum: (value)->
54
- math.bignumber value.toString()
+ math.bignumber "#{value}"
55
56
convertToBigint: (value)->
57
parseInt math.multiply(@toBignum(value), @toBignum(100000000))
lib/market_helper.js
@@ -59,7 +59,7 @@
59
return !!CURRENCIES[currency];
60
},
61
toBignum: function(value) {
62
- return math.bignumber(value.toString());
+ return math.bignumber("" + value);
63
64
convertToBigint: function(value) {
65
return parseInt(math.multiply(this.toBignum(value), this.toBignum(100000000)));
0 commit comments