gnu.math
public class DFloNum extends RealNum implements Externalizable
Constructor Summary | |
---|---|
DFloNum() | |
DFloNum(double value) | |
DFloNum(String s) |
Method Summary | |
---|---|
Numeric | add(Object y, int k) |
Numeric | addReversed(Numeric x, int k) |
static int | compare(double x, double y) |
static int | compare(IntNum x_num, IntNum x_den, double y) Compare (x_num/x_den) with toExact(y). |
int | compare(Object obj) |
int | compareReversed(Numeric x) |
Numeric | div(Object y) |
Numeric | divReversed(Numeric x) |
double | doubleValue() |
boolean | equals(Object obj) |
int | hashCode() |
boolean | isExact() |
boolean | isNegative() |
boolean | isZero() |
long | longValue() |
static DFloNum | make(double value) |
Numeric | mul(Object y) |
Numeric | mulReversed(Numeric x) |
Numeric | neg() |
static DFloNum | one() |
Numeric | power(IntNum y) |
void | readExternal(ObjectInput in) |
int | sign() |
static RatNum | toExact(double value) Converts to the closest exact rational value. |
String | toString() |
String | toString(int radix) |
void | writeExternal(ObjectOutput out) |
Serial Data: Writes the number as a double (using writeDouble).