|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.NumberUtil
public final class NumberUtil
Utility methods around Numbers. Mainly for BigDecimals, used by the restricted number strong types.
| Method Summary | |
|---|---|
static int |
countDigits(long value)
Counts the number of decimal digits needed to represent the given value. |
static String |
toString(long unscaledValue,
int scale)
Convert the given unscaled long with the given scale to it's string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int countDigits(long value)
value - the value to count for.
public static String toString(long unscaledValue,
int scale)
unscaledValue - the scaled long.scale - the scale to be applied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||