Package org.rspeer.commons.math
Class NumericFormat
- java.lang.Object
-
- org.rspeer.commons.math.NumericFormat
-
public class NumericFormat extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNumericFormat.Abbreviation
-
Constructor Summary
Constructors Constructor Description NumericFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringapply(long value)static Stringapply(long value, int settings)static Stringapply(long value, NumericFormat.Abbreviation abbreviation)static Stringapply(long value, NumericFormat.Abbreviation abbreviation, boolean commas, int precision)static intprecision(int precision)
-
-
-
Field Detail
-
COMMAS
public static final byte COMMAS
- See Also:
- Constant Field Values
-
THOUSANDS
public static final byte THOUSANDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
precision
public static int precision(int precision)
-
apply
public static String apply(long value)
-
apply
public static String apply(long value, NumericFormat.Abbreviation abbreviation)
-
apply
public static String apply(long value, NumericFormat.Abbreviation abbreviation, boolean commas, int precision)
-
apply
public static String apply(long value, int settings)
-
-