convert to trillions as well
This commit is contained in:
parent
4bc38236d0
commit
d9361b60ff
1 changed files with 2 additions and 0 deletions
|
@ -344,6 +344,8 @@ function convertToNumber(string) {
|
|||
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000;
|
||||
} else if(string.indexOf('B') > -1) {
|
||||
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000000;
|
||||
} else if(string.indexOf('T') > -1) {
|
||||
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000000000;
|
||||
} else {
|
||||
return Number(string.replace(/[^0-9\.]+/g, ''));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue