public class NiceFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.text.DecimalFormat |
DF |
private static java.text.DecimalFormat |
DFE |
static int |
NUM_DECIMALS |
Constructor and Description |
---|
NiceFormatter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(double d)
Formats a double to display three decimal places.
|
static java.lang.String |
normalizeLength(java.lang.String s,
int length)
Adds spaces to the end of a string to make it length long; useful for making columns in plaintext tables line up.
|
private static final java.text.DecimalFormat DF
private static final java.text.DecimalFormat DFE
public static final int NUM_DECIMALS
public static java.lang.String format(double d)
public static java.lang.String normalizeLength(java.lang.String s, int length)