forked from Fascinated/Bat
make the scoresaber main cmd show more data
This commit is contained in:
@ -8,7 +8,6 @@ import java.util.Date;
|
||||
|
||||
@UtilityClass
|
||||
public class DateUtils {
|
||||
|
||||
private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ISO_INSTANT;
|
||||
|
||||
/**
|
||||
|
16
src/main/java/cc/fascinated/bat/common/NumberUtils.java
Normal file
16
src/main/java/cc/fascinated/bat/common/NumberUtils.java
Normal file
@ -0,0 +1,16 @@
|
||||
package cc.fascinated.bat.common;
|
||||
|
||||
/**
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
public class NumberUtils {
|
||||
/**
|
||||
* Formats a number with commas.
|
||||
*
|
||||
* @param number the number to format
|
||||
* @return the formatted number
|
||||
*/
|
||||
public static String formatNumberCommas(double number) {
|
||||
return String.format("%,.0f", number);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user