gnu.math
public class IntFraction extends RatNum implements Externalizable
| Constructor Summary | |
|---|---|
| IntFraction(IntNum num, IntNum den) | |
| Method Summary | |
|---|---|
| Numeric | add(Object y, int k) |
| Numeric | addReversed(Numeric x, int k) |
| int | compare(Object obj) |
| int | compareReversed(Numeric x) |
| IntNum | denominator() |
| Numeric | div(Object y) |
| Numeric | divReversed(Numeric x) |
| double | doubleValue() |
| boolean | isNegative() |
| long | longValue() |
| Numeric | mul(Object y) |
| Numeric | mulReversed(Numeric x) |
| static IntFraction | neg(IntFraction x) |
| Numeric | neg() |
| IntNum | numerator() |
| void | readExternal(ObjectInput in) |
| int | sign() |
| String | toString(int radix) |
| void | writeExternal(ObjectOutput out) |
Serial Data: Read the numerator and denominator as IntNums. Assumes they have no common factors.
Serial Data: Write the (canonicalized) numerator and denominator IntNums.