Fixup rounding for millions

This commit is contained in:
RedSparr0w committed 2019-11-23 16:47:32 +13:00
1 parent e42394fdbe
commit f4ea14f2bf
4 files changed
+2 -1

No files matched your search

@@ -88,7 +88,7 @@ public class Bot {
if (price > 1e9) {
return (Math.floor(price / 1e8) / 10) + "B";
} else if (price > 1e6) {
return (Math.floor(price / 1e8) / 10) + "M";
return (Math.floor(price / 1e5) / 10) + "M";
} else if (price > 1e3) {
return (Math.floor(price / 100) / 10) + "K";
} else {