Class Formatter
java.lang.Object
com.realtime.crossfire.jxclient.util.Formatter
Utility class for formatting values into strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringformatFloat(double value, int digits) Formats a float value for display.static @NotNull StringformatLong(long value) Returns alongvalue formatted as a human-readable string.
-
Method Details
-
formatLong
Returns alongvalue formatted as a human-readable string.- Parameters:
value- the value- Returns:
- return the formatted value
-
formatFloat
Formats a float value for display.- Parameters:
value- the float valuedigits- the number of fraction digits; must be between 1..3 inclusive- Returns:
- the formatted value
-