|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to define Divisible arithmetical operations. Essentially these are operations which can transform an integer (or any number) into a non-integer.
| Method Summary | |
Divisible |
factored(double factor)
Method to yield the quotient of this divided by factor, and return it as the result. |
Divisible |
inverse()
Method to yield the reciprocal of this and return it as the result. |
Divisible |
quotient(BaseNumber divisor)
Method to divide this by divisor and return the quotient as the result. |
| Method Detail |
public Divisible inverse()
public Divisible quotient(BaseNumber divisor)
throws InvalidOperandException
divisor - the number to multiply by this.
InvalidOperandException - operands are not compatible for the quotient
operation.
// TODO Fix it so that this method is safe (see above).public Divisible factored(double factor)
factor - the scale factor.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||