Share via


BigDecimal.CompareTo(BigDecimal) Method

Definition

Compares this BigDecimal with the specified BigDecimal.

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

Parameters

val
BigDecimal

BigDecimal to which this BigDecimal is to be compared.

Returns

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

Attributes

Exceptions

if val == null.

Remarks

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

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