- All Superinterfaces:
Comparable<Number>,Number
An instance of this class represents an integer number.
-
Method Summary
Modifier and TypeMethodDescriptionReturns this integer as an instance of Java'sBigInteger.
If this number is infinite, it will returnnull;intintValue()Attempts to extract a Java int value from this IntegerNumber.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface dev.civl.sarl.IF.number.Number
atomString, isInfinite, isOne, isZero, numericalCompareTo, signum
-
Method Details
-
intValue
int intValue()Attempts to extract a Java int value from this IntegerNumber. The answer could be wrong if the integer value is outside of the range of the Java int type.
If this number is infinite, it will return Integer.MAX_VALUE = 2147483647 [0x7fffffff] -
bigIntegerValue
BigInteger bigIntegerValue()Returns this integer as an instance of Java'sBigInteger.
If this number is infinite, it will returnnull;- Returns:
- instance of
BigIntegerequivalent to this integer
-