|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.util.Format.FDBigInt
static class Format.FDBigInt
A really, really simple bigint package tailored to the needs of floating base conversion.
Field Summary | |
---|---|
(package private) int[] |
data
|
(package private) int |
nWords
|
Constructor Summary | |
---|---|
Format.FDBigInt(Format.FDBigInt other)
|
|
Format.FDBigInt(int v)
|
|
Format.FDBigInt(long v)
|
Method Summary | |
---|---|
Format.FDBigInt |
add(Format.FDBigInt other)
Add one FDBigInt to another. |
int |
cmp(Format.FDBigInt other)
Compare FDBigInt with another FDBigInt. |
long |
longValue()
|
void |
lshiftMe(int c)
|
Format.FDBigInt |
mult(Format.FDBigInt other)
Multiply a FDBigInt by another FDBigInt. |
Format.FDBigInt |
mult(int iv)
Multiply a FDBigInt by an int. |
int |
normalizeMe()
normalize this number by shifting until the MSB of the number is at 0x08000000. |
int |
quoRemIteration(Format.FDBigInt S)
Compute q = (int)(this / S) this = 10 * (this mod S) Return q. |
static void |
setDebugging(boolean d)
|
Format.FDBigInt |
sub(Format.FDBigInt other)
Subtract one FDBigInt from another. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int nWords
int[] data
Constructor Detail |
---|
public Format.FDBigInt(int v)
public Format.FDBigInt(long v)
public Format.FDBigInt(Format.FDBigInt other)
Method Detail |
---|
public static void setDebugging(boolean d)
public void lshiftMe(int c) throws IllegalArgumentException
IllegalArgumentException
public int normalizeMe() throws IllegalArgumentException
IllegalArgumentException
public Format.FDBigInt mult(int iv)
public Format.FDBigInt mult(Format.FDBigInt other)
public Format.FDBigInt add(Format.FDBigInt other)
public Format.FDBigInt sub(Format.FDBigInt other)
public int cmp(Format.FDBigInt other)
public int quoRemIteration(Format.FDBigInt S) throws IllegalArgumentException
IllegalArgumentException
public long longValue()
public String toString()
toString
in class Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |