mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
lowercase metric
This commit is contained in:
@@ -90,11 +90,11 @@ public class Bot {
|
|||||||
private String formatSellPrice(int price) {
|
private String formatSellPrice(int price) {
|
||||||
DecimalFormat df = new DecimalFormat("#.##");
|
DecimalFormat df = new DecimalFormat("#.##");
|
||||||
if (price >= 1e9) {
|
if (price >= 1e9) {
|
||||||
return df.format(Math.floor(price / 1e8) / 10) + "B";
|
return df.format(Math.floor(price / 1e8) / 10) + "b";
|
||||||
} else if (price >= 1e6) {
|
} else if (price >= 1e6) {
|
||||||
return df.format(Math.floor(price / 1e5) / 10) + "M";
|
return df.format(Math.floor(price / 1e5) / 10) + "m";
|
||||||
} else if (price >= 1e3) {
|
} else if (price >= 1e3) {
|
||||||
return df.format(Math.floor(price / 100) / 10) + "K";
|
return df.format(Math.floor(price / 100) / 10) + "k";
|
||||||
} else {
|
} else {
|
||||||
return price + "gp";
|
return price + "gp";
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user