public class Formatter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static @NotNull java.lang.String |
formatFloat(double value,
int digits)
Formats a float value for display.
|
static @NotNull java.lang.String |
formatLong(long value)
Returns a
long value formatted as a human-readable string. |
@NotNull public static @NotNull java.lang.String formatLong(long value)
long
value formatted as a human-readable string.value
- the value@NotNull public static @NotNull java.lang.String formatFloat(double value, int digits)
value
- the float valuedigits
- the number of fraction digits; must be between 1..3
inclusive