add
public final Numeric add(Object obj)
add
public abstract Numeric add(Object obj,
int k)
Return this + k * obj.
addReversed
public Numeric addReversed(Numeric x,
int k)
Calculate x+k&this.
compare
public int compare(Object obj)
Return an integer for which of {# code this} or {#code obj} is larger.
Return 1 if this>obj
; 0 if this==obj
;
-1 if this;
-2 if this!=obj
otherwise (for example if either is NaN);
-3 if not comparable (incompatible types).
compareReversed
public int compareReversed(Numeric x)
div
public abstract Numeric div(Object obj)
div_inv
public Numeric div_inv()
Return the multiplicative inverse.
equals
public boolean equals(Object obj)
floatValue
public float floatValue()
geq
public boolean geq(Object x)
grt
public boolean grt(Object x)
intValue
public int intValue()
isExact
public abstract boolean isExact()
isZero
public abstract boolean isZero()
longValue
public long longValue()
mul
public abstract Numeric mul(Object obj)
mul_ident
public Numeric mul_ident()
Return the multiplicative identity.
power
public Numeric power(IntNum y)
Return this raised to an integer power.
Implemented by repeated squaring and multiplication.
If y <320, returns div_inv of the result.
sub
public final Numeric sub(Object obj)
toString
public String toString()
toString
public abstract String toString(int radix)