다음을 통해 공유


BigInteger.CompareTo(BigInteger) Method

Definition

Compares this BigInteger with the specified BigInteger.

[Android.Runtime.Register("compareTo", "(Ljava/math/BigInteger;)I", "GetCompareTo_Ljava_math_BigInteger_Handler")]
public virtual int CompareTo (Java.Math.BigInteger val);
[<Android.Runtime.Register("compareTo", "(Ljava/math/BigInteger;)I", "GetCompareTo_Ljava_math_BigInteger_Handler")>]
abstract member CompareTo : Java.Math.BigInteger -> int
override this.CompareTo : Java.Math.BigInteger -> int

Parameters

val
BigInteger

BigInteger to which this BigInteger is to be compared.

Returns

-1, 0 or 1 as this BigInteger is numerically less than, equal to, or greater than val.

Attributes

Exceptions

if value == null.

Remarks

Java documentation for java.math.BigInteger.compareTo(java.math.BigInteger).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to