ObjBigIntNullExt extension
Properties
- bitLength → int?
-
Available on Obj<
Returns the minimum number of bits required to store this big integer.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isEven → bool?
-
Available on Obj<
Whether this big integer is even.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isNegative → bool?
-
Available on Obj<
Whether this number is negative.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isOdd → bool?
-
Available on Obj<
Whether this big integer is odd.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isValidInt → bool?
-
Available on Obj<
Whether this big integer can be represented as anBigInt?> , provided by the ObjBigIntNullExt extensionint
without losing precision.no setter - sign → int?
-
Available on Obj<
Returns the sign of this big integer.BigInt?> , provided by the ObjBigIntNullExt extensionno setter
Methods
-
abs(
) → BigInt? -
Available on Obj<
Returns the absolute value of this integer.BigInt?> , provided by the ObjBigIntNullExt extension -
compareTo(
BigInt other) → int? -
Available on Obj<
Compares this toBigInt?> , provided by the ObjBigIntNullExt extensionother
. -
gcd(
BigInt other) → BigInt? -
Available on Obj<
Returns the greatest common divisor of this big integer andBigInt?> , provided by the ObjBigIntNullExt extensionother
. -
modInverse(
BigInt modulus) → BigInt? -
Available on Obj<
Returns the modular multiplicative inverse of this big integer moduloBigInt?> , provided by the ObjBigIntNullExt extensionmodulus
. -
modPow(
BigInt exponent, BigInt modulus) → BigInt? -
Available on Obj<
Returns this integer to the power ofBigInt?> , provided by the ObjBigIntNullExt extensionexponent
modulomodulus
. -
pow(
int exponent) → BigInt? -
Available on Obj<
ReturnsBigInt?> , provided by the ObjBigIntNullExt extensionthis
to the power ofexponent
. -
remainder(
BigInt other) → BigInt? -
Available on Obj<
Returns the remainder of the truncating division ofBigInt?> , provided by the ObjBigIntNullExt extensionthis
byother
. -
toDouble(
) → double? -
Available on Obj<
Returns this BigInt as a double.BigInt?> , provided by the ObjBigIntNullExt extension -
toInt(
) → int? -
Available on Obj<
Returns this BigInt as an int.BigInt?> , provided by the ObjBigIntNullExt extension -
toRadixString(
int radix) → String? -
Available on Obj<
ConvertsBigInt?> , provided by the ObjBigIntNullExt extensionthis
to a string representation in the givenradix
. -
toSigned(
int width) → BigInt? -
Available on Obj<
Returns the least significantBigInt?> , provided by the ObjBigIntNullExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits 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 ObjBigIntNullExt extensionwidth
bits of this big integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
.