8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation. 8000
There was an error while loading. Please reload this page.
1 parent 6db9478 commit fd0f249Copy full SHA for fd0f249
js/ethplorer.js
@@ -2070,15 +2070,11 @@ Ethplorer = {
2070
return num.toString();
2071
}
2072
if((num.toString().indexOf("e-") > 0) && withDecimals){
2073
- return Ethplorer.Utils.toBig(num).toFixed(decimals);
2074
- /*
2075
- var parts = num.toString().split("e-");
2076
- var res = parts[0].replace('.', '');
2077
- for(var i=1; i<parseInt(parts[1]); i++){
2078
- res = '0' + res;
+ var res = Ethplorer.Utils.toBig(num).toFixed(decimals);
+ if(cutZeroes){
+ res = res.replace(/0*$/, '');
2079
2080
- return '0.' + res;
2081
- */
+ return res;
2082
2083
2084
if(withDecimals){
0 commit comments