Uses of Class
gnu.math.IntNum
Packages that use IntNum
Package
Description
Supports
Expression,
and various related classes need to compile programming languages.Contains utility classes and interfaces for sequences (lists), arrays, and trees.
Supports various numeric
types, including complex numbers, efficient bignums, exact rational
numbers, units.
-
Uses of IntNum in gnu.expr
-
Uses of IntNum in gnu.kawa.functions
Methods in gnu.kawa.functions that return IntNumModifier and TypeMethodDescriptionstatic IntNumstatic IntNumArithmetic.asIntNum(BigDecimal value) static IntNumArithmetic.asIntNum(BigInteger value) static IntNumstatic IntNumstatic IntNumBitwiseOp.shiftRight(IntNum value, int count) Methods in gnu.kawa.functions with parameters of type IntNum -
Uses of IntNum in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr that return IntNumMethods in gnu.kawa.lispexpr with parameters of type IntNumModifier and TypeMethodDescriptionstatic ObjectLangPrimType.convertIntegerLiteral(IntNum ivalue, PrimType type, boolean nativeValue) -
Uses of IntNum in gnu.kawa.xml
Subclasses of IntNum in gnu.kawa.xmlModifier and TypeClassDescriptionclassAn integer that is an instance of a more specific integer type.Fields in gnu.kawa.xml declared as IntNumModifier and TypeFieldDescriptionfinal IntNumXIntegerType.maxValueThe upper bound, inclusive.final IntNumXIntegerType.minValueThe lower bound, inclusive.Methods in gnu.kawa.xml that return IntNumModifier and TypeMethodDescriptionMethods in gnu.kawa.xml with parameters of type IntNumConstructors in gnu.kawa.xml with parameters of type IntNumModifierConstructorDescriptionXIntegerType(Object name, XDataType base, int typeCode, IntNum min, IntNum max) XIntegerType(String name, XDataType base, int typeCode, IntNum min, IntNum max) -
Uses of IntNum in gnu.lists
-
Uses of IntNum in gnu.math
Modifier and TypeMethodDescriptionstatic IntNumstatic final IntNumIntNum.add(int x, int y) Add two ints, yielding an IntNum.static IntNumAdd an IntNum and an int, yielding a new IntNum.static IntNumAdd two IntNums, yielding their sum as another IntNum.static IntNumAdd two IntNums, yielding their sum as another IntNum.static IntNumIntNum.alloc(int nwords) Allocate a new non-shared IntNum.static IntNumReturn the logical (bit-wise) "and" of an IntNum and an int.static IntNumReturn the logical (bit-wise) "and" of two IntNums.static IntNumIntNum.asIntNumOrNull(Object value) static IntNumDo one the the 16 possible bit-wise operations of two IntNums.IntNum.canonicalize()final IntNumIntFraction.denominator()final IntNumIntNum.denominator()abstract IntNumRatNum.denominator()static IntNumExtract a bit-field as an unsigned integer.static IntNumstatic IntNumReturn the logical (bit-wise) "(inclusive) or" of two IntNums.static IntNumstatic IntNumIntNum.make(int value) Return a (possibly-shared) IntNum with a given int value.static IntNumIntNum.make(int[] words) static IntNumIntNum.make(int[] words, int len) Make a canonicalized IntNum from an array of words.static IntNumIntNum.make(long value) static IntNumBitOps.makeMask(int startBit, int endBit) Create a mask with bits true form bits form startBit to endBit.static IntNumIntNum.minusOne()Return the IntNum for -1.static IntNumstatic IntNumstatic IntNumReturn the logical (bit-wise) negation of an IntNum.final IntNumIntFraction.numerator()final IntNumIntNum.numerator()abstract IntNumRatNum.numerator()static final IntNumIntNum.one()static IntNumCalculate the integral power of an IntNum.static IntNumstatic IntNumstatic IntNumstatic IntNumstatic IntNumBitOps.reverseBits(IntNum x, int start, int end) static IntNumBitOps.setBitValue(IntNum x, int bitno, int newValue) Set the value of a specified bit in an IntNum.static IntNumstatic IntNumSubtract two IntNums, yielding their sum as another IntNum.static final IntNumIntNum.ten()static final IntNumIntNum.times(int x, int y) Multiply two ints, yielding an IntNum.static final IntNumstatic final IntNumIntNum.toExactInt(int rounding_mode) RatNum.toExactInt(int rounding_mode) static IntNumRealNum.toExactInt(double value) Converts an integral double (such as a toInt result) to an IntNum.static IntNumRealNum.toExactInt(double value, int rounding_mode) Converts real to an exact integer, with specified rounding mode.RealNum.toExactInt(int rounding_mode) Converts to an exact integer, with specified rounding mode.UByte.toIntNum()UInt.toIntNum()ULong.toIntNum()UnsignedPrim.toIntNum()UShort.toIntNum()static IntNumRealNum.toScaledInt(double f, int k) Convert double to (rounded) integer, after multiplying by 10**k.RealNum.toScaledInt(int k) Convert this to (rounded) integer, after multiplying by 10**k.static IntNumRealNum.toScaledInt(RatNum r, int k) Convert rational to (rounded) integer, after multiplying by 10**k.static IntNumIntNum.valueOf(byte[] digits, int byte_len, boolean negative, int radix) static IntNumIntNum.valueOf(char[] buf, int offset, int length, int radix, boolean negative) static IntNumIntNum.valueOf(int value) Return a (possibly-shared) IntNum with a given int value.static IntNumIntNum.valueOf(long value) Return a (possibly-shared) IntNum with a given long value.static IntNumstatic IntNumstatic IntNumIntNum.valueOfUnsigned(int value) Make an IntNum from an unsigned 32-bit value.static IntNumIntNum.valueOfUnsigned(long value) Make an IntNum from an unsigned 64-bit value.static IntNumReturn the logical (bit-wise) "exclusive or" of two IntNums.static final IntNumIntNum.zero()Modifier and TypeMethodDescriptionstatic IntNumstatic IntNumAdd an IntNum and an int, yielding a new IntNum.static IntNumAdd two IntNums, yielding their sum as another IntNum.static IntNumAdd two IntNums, yielding their sum as another IntNum.static IntNumReturn the logical (bit-wise) "and" of an IntNum and an int.static IntNumReturn the logical (bit-wise) "and" of two IntNums.static intCount one bits in an IntNum.static IntNumDo one the the 16 possible bit-wise operations of two IntNums.static booleanReturn the value of a specified bit in an IntNum.static intCompare (x_num/x_den) with toExact(y).static intReturn -1, 0, or 1, depending on which value is greater.static intReturn -1, 0, or 1, depending on which value is greater.static voidstatic voidDivide two integers, yielding quotient and remainder.static booleanstatic IntNumExtract a bit-field as an unsigned integer.static IntNumstatic IntNumReturn the logical (bit-wise) "(inclusive) or" of two IntNums.static IntNumstatic intBitOps.lowestBitSet(IntNum x) static RatNumstatic IntNumstatic IntNumstatic IntNumReturn the logical (bit-wise) negation of an IntNum.static IntNumCalculate the integral power of an IntNum.Return this raised to an integer power.static IntNumstatic IntNumstatic IntNumstatic IntNumstatic IntNumBitOps.reverseBits(IntNum x, int start, int end) final voidDestructively set the value of this to that of y.voidSet this to the sum of x and y.static voidDo one the the 16 possible bit-wise operations of two IntNums.static IntNumBitOps.setBitValue(IntNum x, int bitno, int newValue) Set the value of a specified bit in an IntNum.voidIntNum.setNegative(IntNum x) Destructively set this to the negative of x.static IntNumstatic IntNumSubtract two IntNums, yielding their sum as another IntNum.static booleanReturn true iff an IntNum and an int have any true bits in common.static booleanReturn true iff two IntNums have any true bits in common.static final IntNumstatic final IntNumstatic IntNumReturn the logical (bit-wise) "exclusive or" of two IntNums. -
Uses of IntNum in gnu.xquery.util
Fields in gnu.xquery.util declared as IntNumModifier and TypeFieldDescriptionstatic final IntNumIntegerRange.MAX_INTstatic final IntNumIntegerRange.MIN_INTMethods in gnu.xquery.util with parameters of type IntNumModifier and TypeMethodDescriptionstatic voidIntegerRange.integerRange(IntNum first, IntNum last, Consumer out) static ObjectNumberValue.roundHalfToEven(Object value, IntNum precision)