From d9361b60ff87fae959770a201b3ae9a2f035d36a Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 24 May 2016 13:07:13 -0400 Subject: [PATCH] convert to trillions as well --- public/bot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/bot.js b/public/bot.js index 381e5d5..97a4f24 100644 --- a/public/bot.js +++ b/public/bot.js @@ -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, '')); }