|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.NumberUtils
public final class NumberUtils
Collection of useful utilities to work with numbers.
| Field Summary | |
|---|---|
static java.text.NumberFormat |
NFCURRENCYFORMAT
static Number format for Currency |
static java.text.NumberFormat |
NFCURRENCYFORMATEDIT
static Number format for Currency for editing |
static java.text.NumberFormat |
NFFORMAT
static Number format for no Exponent |
static java.text.NumberFormat |
NFFORMATEDIT
static Number format for no Exponent for editing |
protected static char[] |
ZEROCHARS
Static array used to append leading 0 chars to file name constructed from number. |
| Method Summary | |
|---|---|
static long |
exponentiate(int iBbase,
int iExponent)
Method to make Exponention |
static java.lang.String |
getDigitNumberString(int iInputNumber,
int iDigitLength)
Method to make specified length digit number string representation from particular input number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final char[] ZEROCHARS
public static final java.text.NumberFormat NFFORMAT
public static final java.text.NumberFormat NFFORMATEDIT
public static final java.text.NumberFormat NFCURRENCYFORMAT
public static final java.text.NumberFormat NFCURRENCYFORMATEDIT
| Method Detail |
|---|
public static long exponentiate(int iBbase,
int iExponent)
throws java.lang.IllegalArgumentException
iBbase - - base of Exponention [1..]iExponent - - exponent of Exponention [0..14]
java.lang.IllegalArgumentException - - in case of arguments out of valid range
public static java.lang.String getDigitNumberString(int iInputNumber,
int iDigitLength)
iInputNumber - - input number that will be converted into 8 digit number
string representationiDigitLength - - length of the output digit number string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||