Merge pull request #766 from dabura667/fix-BTC-places
Fix Fee Rate to 8 decimal places
This commit is contained in:
commit
cc7c6f81d4
@ -26,9 +26,9 @@ angular.module('insight.currency').controller('CurrencyController',
|
|||||||
} else if (this.symbol === 'bits') {
|
} else if (this.symbol === 'bits') {
|
||||||
this.factor = 1000000;
|
this.factor = 1000000;
|
||||||
response = _roundFloat((value * this.factor), 2);
|
response = _roundFloat((value * this.factor), 2);
|
||||||
} else {
|
} else { // assumes symbol is BTC
|
||||||
this.factor = 1;
|
this.factor = 1;
|
||||||
response = value;
|
response = _roundFloat((value * this.factor), 8);
|
||||||
}
|
}
|
||||||
// prevent sci notation
|
// prevent sci notation
|
||||||
if (response < 1e-7) response=response.toFixed(8);
|
if (response < 1e-7) response=response.toFixed(8);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user