Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdielKavash authored and Dream-Master committed Mar 10, 2024
1 parent 787bed0 commit f7a608b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/emt/util/EMTTextHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,4 @@ public class EMTTextHelper {
public static String localize(String key) {
return StatCollector.translateToLocal(key);
}

public static String formatNumber(long number) {
if (number < 10_000) {
return String.valueOf(number);
} else if (number < 10_000_000) {
return (number / 1000) + "k";
} else if (number < 1_000_000_000) {
return (number / 1_000_000) + "M";
} else {
return (number / 1_000_000_000) + "G";
}
}
}

0 comments on commit f7a608b

Please sign in to comment.