📄 biginteger.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#compareTo(java.math.BigInteger)">compareTo</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Compares this BigInteger with the specified BigInteger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#compareTo(java.lang.Object)">compareTo</A></B>(<A HREF="../../java/lang/Object.html">Object</A> o)</CODE><BR> Compares this BigInteger with the specified Object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#divide(java.math.BigInteger)">divide</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is <tt>(this / val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#divideAndRemainder(java.math.BigInteger)">divideAndRemainder</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns an array of two BigIntegers containing <tt>(this / val)</tt> followed by <tt>(this % val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#doubleValue()">doubleValue</A></B>()</CODE><BR> Converts this BigInteger to a double.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#equals(java.lang.Object)">equals</A></B>(<A HREF="../../java/lang/Object.html">Object</A> x)</CODE><BR> Compares this BigInteger with the specified Object for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#flipBit(int)">flipBit</A></B>(int n)</CODE><BR> Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#floatValue()">floatValue</A></B>()</CODE><BR> Converts this BigInteger to a float.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#gcd(java.math.BigInteger)">gcd</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is the greatest common divisor of <tt>abs(this)</tt> and <tt>abs(val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#getLowestSetBit()">getLowestSetBit</A></B>()</CODE><BR> Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns the hash code for this BigInteger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#intValue()">intValue</A></B>()</CODE><BR> Converts this BigInteger to an int.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#isProbablePrime(int)">isProbablePrime</A></B>(int certainty)</CODE><BR> Returns <tt>true</tt> if this BigInteger is probably prime, <tt>false</tt> if it's definitely composite.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#longValue()">longValue</A></B>()</CODE><BR> Converts this BigInteger to a long.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#max(java.math.BigInteger)">max</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns the maximum of this BigInteger and <tt>val</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#min(java.math.BigInteger)">min</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns the minimum of this BigInteger and <tt>val</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#mod(java.math.BigInteger)">mod</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> m)</CODE><BR> Returns a BigInteger whose value is <tt>(this mod m</tt>).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#modInverse(java.math.BigInteger)">modInverse</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> m)</CODE><BR> Returns a BigInteger whose value is <tt>(this<sup>-1</sup> mod m)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#modPow(java.math.BigInteger, java.math.BigInteger)">modPow</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> exponent, <A HREF="../../java/math/BigInteger.html">BigInteger</A> m)</CODE><BR> Returns a BigInteger whose value is <tt>(this<sup>exponent</sup> mod m)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#multiply(java.math.BigInteger)">multiply</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is <tt>(this * val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#negate()">negate</A></B>()</CODE><BR> Returns a BigInteger whose value is <tt>(-this)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#not()">not</A></B>()</CODE><BR> Returns a BigInteger whose value is <tt>(~this)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#or(java.math.BigInteger)">or</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is <tt>(this | val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#pow(int)">pow</A></B>(int exponent)</CODE><BR> Returns a BigInteger whose value is <tt>(this<sup>exponent</sup>)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#remainder(java.math.BigInteger)">remainder</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is <tt>(this % val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#setBit(int)">setBit</A></B>(int n)</CODE><BR> Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#shiftLeft(int)">shiftLeft</A></B>(int n)</CODE><BR> Returns a BigInteger whose value is <tt>(this << n)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#shiftRight(int)">shiftRight</A></B>(int n)</CODE><BR> Returns a BigInteger whose value is <tt>(this >> n)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#signum()">signum</A></B>()</CODE><BR> Returns the signum function of this BigInteger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#subtract(java.math.BigInteger)">subtract</A></B>(<A HREF="../../java/math/BigInteger.html">BigInteger</A> val)</CODE><BR> Returns a BigInteger whose value is <tt>(this - val)</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#testBit(int)">testBit</A></B>(int n)</CODE><BR> Returns <tt>true</tt> if and only if the designated bit is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#toByteArray()">toByteArray</A></B>()</CODE><BR> Returns a byte array containing the two's-complement representation of this BigInteger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#toString()">toString</A></B>()</CODE><BR> Returns the decimal String representation of this BigInteger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#toString(int)">toString</A></B>(int radix)</CODE><BR> Returns the String representation of this BigInteger in the given radix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/math/BigInteger.html#valueOf(long)">valueOf</A></B>(long val)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -