mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
move decimal format to TextUtil
This commit is contained in:
@@ -42,6 +42,10 @@ public class TextUtil {
|
||||
return Normalizer.normalize(text, Normalizer.Form.NFD);
|
||||
|
||||
}
|
||||
private static final DecimalFormat df = new DecimalFormat("#.##");
|
||||
public static String decimalFormat(float value) {
|
||||
return df.format(value);
|
||||
}
|
||||
/**
|
||||
* Safely converts an object to a String.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user