Returns a BigInt whose value is (this + that)
.
Returns a BigInt whose value is (this + that)
.
value to be added to this BigInt.
{ @code this + that}
Returns a BigInteger whose value is (this & that)
.
Returns a BigInteger whose value is (this & that)
. (This
method returns a negative BigInteger if and only if this
and that
are
both negative.)
value to be AND'ed with this BigInteger.
this & that
Compares this numeric with that numeric for order.
Compares this numeric with that numeric for order. Returns a negative integer, zero, or a positive integer as the
this
is less than, equal to, or greater than that
.
Returns a BigInt whose value is (this / that)
.
Returns a BigInt whose value is (this / that)
.
value by which this BigInt is to be divided.
{ @code this / that}
ArithmeticException
if { @code that} is zero.
Multiply this number with other
by module Q.
Multiply this number with other
by module Q.
Mainnet
Returns the maximum of this BigInteger and val
.
Returns the maximum of this BigInteger and val
.
value with which the maximum is to be computed.
the BigInteger whose value is the greater of this and { @code val}. If they are equal, either may be returned.
Returns the minimum of this BigInteger and val
.
Returns the minimum of this BigInteger and val
.
value with which the minimum is to be computed.
the BigInteger whose value is the lesser of this BigInteger and { @code val}. If they are equal, either may be returned.
Subtracts this number with other
by module Q.
Subtracts this number with other
by module Q.
2.0
Returns a BigInt whose value is (this mod m
).
Returns a BigInt whose value is (this mod m
). This method
differs from remainder
in that it always returns a
non-negative BigInteger.
the modulus.
{ @code this mod m}
ArithmeticException
{ @code m} ≤ 0
#remainder
Returns this mod
Q, i.e.
Returns this mod
Q, i.e. remainder of division by Q, where Q is an order of the cryprographic group.
2.0
Multiply this number with other
by module Q.
Multiply this number with other
by module Q.
2.0
Returns a BigInt whose value is (this * that)
.
Returns a BigInt whose value is (this * that)
.
value to be multiplied by this BigInt.
{ @code this * that}
Returns a BigInt whose value is (-this)
.
Returns a BigInteger whose value is (this | that)
.
Returns a BigInteger whose value is (this | that)
. (This
method returns a negative BigInteger if and only if either this
or that
is
negative.)
value to be OR'ed with this BigInteger.
this | that
Adds this number with other
by module Q.
Adds this number with other
by module Q.
2.0
Returns a BigInt whose value is (this % that)
.
Returns a BigInt whose value is (this % that)
.
value by which this BigInt is to be divided, and the remainder computed.
{ @code this % that}
ArithmeticException
if { @code that} is zero.
Returns the signum function of this BigInt.
Returns the signum function of this BigInt.
-1, 0 or 1 as the value of this BigInt is negative, zero or positive.
Returns a BigInt whose value is (this - that)
.
Returns a BigInt whose value is (this - that)
.
value to be subtracted from this BigInt.
{ @code this - that}
Absolute value of this numeric value.
Absolute value of this numeric value.
2.0
Returns a big-endian representation of this BigInt in a collection of Booleans.
Returns a big-endian representation of this BigInt in a collection of Booleans. Each boolean corresponds to one bit of the representation.
2.0
Convert this BigInt value to Byte.
Convert this BigInt value to Byte.
ArithmeticException
if overflow happens.
Returns a big-endian representation of this BigInt in a collection of bytes.
Returns a big-endian representation of this BigInt in a collection of bytes.
For example, the value 0x1213141516171819
would yield the
byte array {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19
}.
2.0
Convert this BigInt value to Int.
Convert this BigInt value to Int.
ArithmeticException
if overflow happens.
Convert this BigInt value to Int.
Convert this BigInt value to Int.
ArithmeticException
if overflow happens.
Convert this BigInt value to Short.
Convert this BigInt value to Short.
ArithmeticException
if overflow happens.
The data value wrapped by this wrapper.
A default implementation of BigInt interface.
BigInt for detailed descriptions