public interface INum extends ISignedNumber
Modifier and Type | Field and Description |
---|---|
static double |
Catalan |
static double |
Degree |
static double |
EulerGamma |
static double |
Glaisher |
static double |
GoldenRatio |
static double |
Khinchin |
ASTID, BLANKID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID
Modifier and Type | Method and Description |
---|---|
INum |
add(INum val) |
double |
getRealPart() |
int |
intValue()
Returns the value of this number as an
int (by simply casting to type int ). |
boolean |
isNumIntValue()
Check if this expression represents an
int value. |
INum |
multiply(INum val) |
INum |
pow(INum val) |
int |
toInt()
Converts this double value to an
int value; unlike intValue() this method raises
ArithmeticException if this integer cannot be represented by an int type. |
apfloatNumValue, divideBy, doubleValue, inverse, isGreaterThan, isLessThan, isNegative, isPositive, isZero, negate, numValue, opposite, round, sign, subtractFrom, toLong
apcomplexNumValue, ceilFraction, compareAbsValueToOne, complexNumValue, complexSign, conjugate, eabs, equalsInt, floorFraction, getIm, getImaginary, getRe, getReal
$div, $minus, $plus, $times, $up, accept, accept, accept, accept, and, apply, apply, asType, compareTo, dec, divide, evalComplex, evalDouble, evalNumber, evalSignedNumber, evaluate, evaluateHead, fullFormString, getAt, getField, head, hierarchy, ifPresent, inc, internalFormString, internalJavaString, internalScalaString, isAllExpanded, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isAtom, isBlank, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isConstant, isCos, isCosh, isDerivative, isDirectedInfinity, isE, isExpanded, isFalse, isFlatAST, isFraction, isFree, isFree, isFree, isFreeAST, isFreeAST, isFreeOfPatterns, isFunction, isGEOrdered, isGTOrdered, isIndeterminate, isInfinity, isInteger, isIntegerResult, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegativeInfinity, isNegativeResult, isNonNegativeResult, isNot, isNumber, isNumEqualInteger, isNumEqualRational, isNumeric, isNumericFunction, isNumericMode, isOne, isONE, isOr, isOrderlessAST, isPattern, isPatternDefault, isPatternExpr, isPatternSequence, isPi, isPlus, isPlusTimesPower, isPolynomial, isPolynomial, isPolynomialOfMaxDegree, isPositiveResult, isPower, isPresent, isRational, isRationalResult, isRationalValue, isRealResult, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSpan, isSymbol, isTan, isTanh, isTimes, isTrue, isUnit, isValue, isVariable, isVector, isZERO, leafCount, leaves, minus, mod, multiply, multiply, negative, ofNullable, optional, or, orElse, orElseGet, orElseThrow, plus, power, power, reciprocal, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceSlots, signum, subtract, sum, times, timesDistributed, topHead, variables2Slots
static final double Catalan
static final double Degree
static final double EulerGamma
static final double Glaisher
static final double GoldenRatio
static final double Khinchin
double getRealPart()
boolean isNumIntValue()
int
value. The value
of an INum
object can be an int
value.isNumIntValue
in interface IExpr
int intValue()
int
(by simply casting to type int
).int toInt() throws java.lang.ArithmeticException
int
value; unlike intValue()
this method raises
ArithmeticException
if this integer cannot be represented by an int
type.toInt
in interface ISignedNumber
int
.java.lang.ArithmeticException
- if conversion to int
is not possible.