|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number gnu.math.Numeric
public abstract class Numeric
Field Summary | |
---|---|
static int |
CEILING
|
static int |
FLOOR
|
static int |
ROUND
|
static int |
TRUNCATE
|
Constructor Summary | |
---|---|
Numeric()
|
Method Summary | |
---|---|
abstract Numeric |
abs()
|
Numeric |
add(java.lang.Object obj)
|
abstract Numeric |
add(java.lang.Object obj,
int k)
Return this + k * obj. |
Numeric |
addReversed(Numeric x,
int k)
Calculate x+k&this. |
int |
compare(java.lang.Object obj)
Return 1 if this>obj; 0 if this==obj; -1 if this |
int |
compareReversed(Numeric x)
|
Numeric |
div_inv()
Return the multiplicative inverse. |
abstract Numeric |
div(java.lang.Object obj)
|
Numeric |
divReversed(Numeric x)
|
boolean |
equals(java.lang.Object obj)
|
float |
floatValue()
|
boolean |
geq(java.lang.Object x)
|
boolean |
grt(java.lang.Object x)
|
int |
intValue()
|
abstract boolean |
isExact()
|
abstract boolean |
isZero()
|
long |
longValue()
|
Numeric |
mul_ident()
Return the multiplicative identity. |
abstract Numeric |
mul(java.lang.Object obj)
|
Numeric |
mulReversed(Numeric x)
|
abstract Numeric |
neg()
|
Numeric |
power(IntNum y)
Return this raised to an integer power. |
Numeric |
sub(java.lang.Object obj)
|
java.lang.String |
toString()
|
abstract java.lang.String |
toString(int radix)
|
Methods inherited from class java.lang.Number |
---|
byteValue, doubleValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FLOOR
public static final int CEILING
public static final int TRUNCATE
public static final int ROUND
Constructor Detail |
---|
public Numeric()
Method Detail |
---|
public float floatValue()
floatValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public abstract Numeric add(java.lang.Object obj, int k)
public final Numeric add(java.lang.Object obj)
public final Numeric sub(java.lang.Object obj)
public abstract Numeric mul(java.lang.Object obj)
public abstract Numeric div(java.lang.Object obj)
public abstract Numeric abs()
public abstract Numeric neg()
public abstract java.lang.String toString(int radix)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean isExact()
public abstract boolean isZero()
public int compare(java.lang.Object obj)
public int compareReversed(Numeric x)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean grt(java.lang.Object x)
public boolean geq(java.lang.Object x)
public Numeric addReversed(Numeric x, int k)
public Numeric mulReversed(Numeric x)
public Numeric divReversed(Numeric x)
public Numeric div_inv()
public Numeric mul_ident()
public Numeric power(IntNum y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |