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 IntNum
static IntNum
Arithmetic.asIntNum
(BigDecimal value) static IntNum
Arithmetic.asIntNum
(BigInteger value) static IntNum
static IntNum
static IntNum
BitwiseOp.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 Object
LangPrimType.convertIntegerLiteral
(IntNum ivalue, PrimType type, boolean nativeValue) -
Uses of IntNum in gnu.kawa.xml
Subclasses of IntNum in gnu.kawa.xmlModifier and TypeClassDescriptionclass
An integer that is an instance of a more specific integer type.Fields in gnu.kawa.xml declared as IntNumModifier and TypeFieldDescriptionfinal IntNum
XIntegerType.maxValue
The upper bound, inclusive.final IntNum
XIntegerType.minValue
The 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 IntNum
static final IntNum
IntNum.add
(int x, int y) Add two ints, yielding an IntNum.static IntNum
Add an IntNum and an int, yielding a new IntNum.static IntNum
Add two IntNums, yielding their sum as another IntNum.static IntNum
Add two IntNums, yielding their sum as another IntNum.static IntNum
IntNum.alloc
(int nwords) Allocate a new non-shared IntNum.static IntNum
Return the logical (bit-wise) "and" of an IntNum and an int.static IntNum
Return the logical (bit-wise) "and" of two IntNums.static IntNum
IntNum.asIntNumOrNull
(Object value) static IntNum
Do one the the 16 possible bit-wise operations of two IntNums.IntNum.canonicalize()
final IntNum
IntFraction.denominator()
final IntNum
IntNum.denominator()
abstract IntNum
RatNum.denominator()
static IntNum
Extract a bit-field as an unsigned integer.static IntNum
static IntNum
Return the logical (bit-wise) "(inclusive) or" of two IntNums.static IntNum
static IntNum
IntNum.make
(int value) Return a (possibly-shared) IntNum with a given int value.static IntNum
IntNum.make
(int[] words) static IntNum
IntNum.make
(int[] words, int len) Make a canonicalized IntNum from an array of words.static IntNum
IntNum.make
(long value) static IntNum
BitOps.makeMask
(int startBit, int endBit) Create a mask with bits true form bits form startBit to endBit.static IntNum
IntNum.minusOne()
Return the IntNum for -1.static IntNum
static IntNum
static IntNum
Return the logical (bit-wise) negation of an IntNum.final IntNum
IntFraction.numerator()
final IntNum
IntNum.numerator()
abstract IntNum
RatNum.numerator()
static final IntNum
IntNum.one()
static IntNum
Calculate the integral power of an IntNum.static IntNum
static IntNum
static IntNum
static IntNum
static IntNum
BitOps.reverseBits
(IntNum x, int start, int end) static IntNum
BitOps.setBitValue
(IntNum x, int bitno, int newValue) Set the value of a specified bit in an IntNum.static IntNum
static IntNum
Subtract two IntNums, yielding their sum as another IntNum.static final IntNum
IntNum.ten()
static final IntNum
IntNum.times
(int x, int y) Multiply two ints, yielding an IntNum.static final IntNum
static final IntNum
IntNum.toExactInt
(int rounding_mode) RatNum.toExactInt
(int rounding_mode) static IntNum
RealNum.toExactInt
(double value) Converts an integral double (such as a toInt result) to an IntNum.static IntNum
RealNum.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 IntNum
RealNum.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 IntNum
RealNum.toScaledInt
(RatNum r, int k) Convert rational to (rounded) integer, after multiplying by 10**k.static IntNum
IntNum.valueOf
(byte[] digits, int byte_len, boolean negative, int radix) static IntNum
IntNum.valueOf
(char[] buf, int offset, int length, int radix, boolean negative) static IntNum
IntNum.valueOf
(int value) Return a (possibly-shared) IntNum with a given int value.static IntNum
IntNum.valueOf
(long value) Return a (possibly-shared) IntNum with a given long value.static IntNum
static IntNum
static IntNum
IntNum.valueOfUnsigned
(int value) Make an IntNum from an unsigned 32-bit value.static IntNum
IntNum.valueOfUnsigned
(long value) Make an IntNum from an unsigned 64-bit value.static IntNum
Return the logical (bit-wise) "exclusive or" of two IntNums.static final IntNum
IntNum.zero()
Modifier and TypeMethodDescriptionstatic IntNum
static IntNum
Add an IntNum and an int, yielding a new IntNum.static IntNum
Add two IntNums, yielding their sum as another IntNum.static IntNum
Add two IntNums, yielding their sum as another IntNum.static IntNum
Return the logical (bit-wise) "and" of an IntNum and an int.static IntNum
Return the logical (bit-wise) "and" of two IntNums.static int
Count one bits in an IntNum.static IntNum
Do one the the 16 possible bit-wise operations of two IntNums.static boolean
Return the value of a specified bit in an IntNum.static int
Compare (x_num/x_den) with toExact(y).static int
Return -1, 0, or 1, depending on which value is greater.static int
Return -1, 0, or 1, depending on which value is greater.static void
static void
Divide two integers, yielding quotient and remainder.static boolean
static IntNum
Extract a bit-field as an unsigned integer.static IntNum
static IntNum
Return the logical (bit-wise) "(inclusive) or" of two IntNums.static IntNum
static int
BitOps.lowestBitSet
(IntNum x) static RatNum
static IntNum
static IntNum
static IntNum
Return the logical (bit-wise) negation of an IntNum.static IntNum
Calculate the integral power of an IntNum.Return this raised to an integer power.static IntNum
static IntNum
static IntNum
static IntNum
static IntNum
BitOps.reverseBits
(IntNum x, int start, int end) final void
Destructively set the value of this to that of y.void
Set this to the sum of x and y.static void
Do one the the 16 possible bit-wise operations of two IntNums.static IntNum
BitOps.setBitValue
(IntNum x, int bitno, int newValue) Set the value of a specified bit in an IntNum.void
IntNum.setNegative
(IntNum x) Destructively set this to the negative of x.static IntNum
static IntNum
Subtract two IntNums, yielding their sum as another IntNum.static boolean
Return true iff an IntNum and an int have any true bits in common.static boolean
Return true iff two IntNums have any true bits in common.static final IntNum
static final IntNum
static IntNum
Return 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 IntNum
IntegerRange.MAX_INT
static final IntNum
IntegerRange.MIN_INT
Methods in gnu.xquery.util with parameters of type IntNumModifier and TypeMethodDescriptionstatic void
IntegerRange.integerRange
(IntNum first, IntNum last, Consumer out) static Object
NumberValue.roundHalfToEven
(Object value, IntNum precision)