|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to define Integral operations.
Method Summary | |
int |
intValue()
Returns the value of the specified number as an int . |
boolean |
isExact()
Method to determine if the quantity represented is in fact exact. |
boolean |
isPowerOfTen()
Method to determine if this is a power of ten and ten only. |
boolean |
isZero()
Method to determine if the quantity represented is in fact the integer value zero. |
long |
longValue()
Returns the value of the specified number as a long . |
BaseNumber |
minus()
Method to yield a copy of this but with the sign changed. |
java.math.BigInteger |
toBigInteger()
Convert this into a BigInteger. |
Methods inherited from interface com.rubecula.jquantity.Arithmetical |
isInfinite, isInteger, isUnity, signum |
Methods inherited from interface com.rubecula.util.Auditable |
audit, audit, audit |
Methods inherited from interface com.rubecula.util.Identifiable |
getIdentifier |
Method Detail |
public int intValue()
int
.
public long longValue()
long
.
public BaseNumber minus()
Method to yield a copy of this but with the sign changed.
NOTE: it is a requirement of this method that the class of the result
is the same as the class of this so that the result can be safely
cast to the original class.
Note that this method is parallel but not congruent with the method of the same name defined in the BaseNumber abstract class.
public boolean isPowerOfTen()
public java.math.BigInteger toBigInteger()
public boolean isExact()
public boolean isZero()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |