gnu.math
public abstract class Numeric extends Number
Field Summary | |
---|---|
static int | CEILING |
static int | FLOOR |
static int | ROUND |
static int | TRUNCATE |
Method Summary | |
---|---|
abstract Numeric | abs() |
abstract Numeric | add(Object obj, int k) Return this + k * obj. |
Numeric | add(Object obj) |
Numeric | addReversed(Numeric x, int k) Calculate x+k&this. |
int | compare(Object obj) Return an integer for which of {# code this} or {#code obj} is larger.
|
int | compareReversed(Numeric x) |
abstract Numeric | div(Object obj) |
Numeric | divReversed(Numeric x) |
Numeric | div_inv() Return the multiplicative inverse. |
boolean | equals(Object obj) |
float | floatValue() |
boolean | geq(Object x) |
boolean | grt(Object x) |
int | intValue() |
abstract boolean | isExact() |
abstract boolean | isZero() |
long | longValue() |
abstract Numeric | mul(Object obj) |
Numeric | mulReversed(Numeric x) |
Numeric | mul_ident() Return the multiplicative identity. |
abstract Numeric | neg() |
Numeric | power(IntNum y) Return this raised to an integer power.
|
Numeric | sub(Object obj) |
abstract String | toString(int radix) |
String | toString() |