ObjBigIntExt extension
Properties
- bitLength → int
-
Available on Obj<
Returns the minimum number of bits required to store this big integer.BigInt> , provided by the ObjBigIntExt extensionno setter - isEven → bool
-
Available on Obj<
Whether this big integer is even.BigInt> , provided by the ObjBigIntExt extensionno setter - isNegative → bool
-
Available on Obj<
Whether this number is negative.BigInt> , provided by the ObjBigIntExt extensionno setter - isOdd → bool
-
Available on Obj<
Whether this big integer is odd.BigInt> , provided by the ObjBigIntExt extensionno setter - isValidInt → bool
-
Available on Obj<
Whether this big integer can be represented as anBigInt> , provided by the ObjBigIntExt extensionintwithout losing precision.no setter - sign → int
-
Available on Obj<
Returns the sign of this big integer.BigInt> , provided by the ObjBigIntExt extensionno setter
Methods
-
abs(
) → BigInt -
Available on Obj<
Returns the absolute value of this integer.BigInt> , provided by the ObjBigIntExt extension -
compareTo(
BigInt other) → int -
Available on Obj<
Compares this toBigInt> , provided by the ObjBigIntExt extensionother. -
gcd(
BigInt other) → BigInt -
Available on Obj<
Returns the greatest common divisor of this big integer andBigInt> , provided by the ObjBigIntExt extensionother. -
modInverse(
BigInt modulus) → BigInt -
Available on Obj<
Returns the modular multiplicative inverse of this big integer moduloBigInt> , provided by the ObjBigIntExt extensionmodulus. -
modPow(
BigInt exponent, BigInt modulus) → BigInt -
Available on Obj<
Returns this integer to the power ofBigInt> , provided by the ObjBigIntExt extensionexponentmodulomodulus. -
pow(
int exponent) → BigInt -
Available on Obj<
ReturnsBigInt> , provided by the ObjBigIntExt extensionthisto the power ofexponent. -
remainder(
BigInt other) → BigInt -
Available on Obj<
Returns the remainder of the truncating division ofBigInt> , provided by the ObjBigIntExt extensionthisbyother. -
toDouble(
) → double -
Available on Obj<
Returns this BigInt as a double.BigInt> , provided by the ObjBigIntExt extension -
toInt(
) → int -
Available on Obj<
Returns this BigInt as an int.BigInt> , provided by the ObjBigIntExt extension -
toRadixString(
int radix) → String -
Available on Obj<
ConvertsBigInt> , provided by the ObjBigIntExt extensionthisto a string representation in the givenradix. -
toSigned(
int width) → BigInt -
Available on Obj<
Returns the least significantBigInt> , provided by the ObjBigIntExt extensionwidthbits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidthbits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth. -
toUnsigned(
int width) → BigInt -
Available on Obj<
Returns the least significantBigInt> , provided by the ObjBigIntExt extensionwidthbits of this big integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth.
Operators
-
operator %(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Euclidean modulo operator.BigInt> , provided by the ObjBigIntExt extension -
operator &(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise and operator.BigInt> , provided by the ObjBigIntExt extension -
operator *(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
MultipliesBigInt> , provided by the ObjBigIntExt extensionotherby this big integer. -
operator +(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
AddsBigInt> , provided by the ObjBigIntExt extensionotherto this big integer. -
operator -(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
SubtractsBigInt> , provided by the ObjBigIntExt extensionotherfrom this big integer. -
operator /(
Obj< BigInt> other) → Obj<double> -
Available on Obj<
Double division operator.BigInt> , provided by the ObjBigIntExt extension -
operator <(
Obj< BigInt> other) → bool -
Available on Obj<
Whether this big integer is numerically smaller thanBigInt> , provided by the ObjBigIntExt extensionother. -
operator <<(
Obj< int> shiftAmount) → Obj<BigInt> -
Available on Obj<
Shift the bits of this integer to the left byBigInt> , provided by the ObjBigIntExt extensionshiftAmount. -
operator <=(
Obj< BigInt> other) → bool -
Available on Obj<
WhetherBigInt> , provided by the ObjBigIntExt extensionotheris numerically greater than this big integer. -
operator >(
Obj< BigInt> other) → bool -
Available on Obj<
Whether this big integer is numerically greater thanBigInt> , provided by the ObjBigIntExt extensionother. -
operator >=(
Obj< BigInt> other) → bool -
Available on Obj<
WhetherBigInt> , provided by the ObjBigIntExt extensionotheris numerically smaller than this big integer. -
operator >>(
Obj< int> shiftAmount) → Obj<BigInt> -
Available on Obj<
Shift the bits of this integer to the right byBigInt> , provided by the ObjBigIntExt extensionshiftAmount. -
operator ^(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise exclusive-or operator.BigInt> , provided by the ObjBigIntExt extension -
operator unary-(
) → Obj< BigInt> -
Available on Obj<
Return the negative value of this integer.BigInt> , provided by the ObjBigIntExt extension -
operator |(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise or operator.BigInt> , provided by the ObjBigIntExt extension -
operator ~(
) → Obj< BigInt> -
Available on Obj<
The bit-wise negate operator.BigInt> , provided by the ObjBigIntExt extension -
operator ~/(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Truncating integer division operator.BigInt> , provided by the ObjBigIntExt extension