Java.Lang.Double.CompareTo Method
Compares this object to the specified double object to determine their relative order.

Syntax

[Android.Runtime.Register("compareTo", "(Ljava/lang/Double;)I", "")]
public int CompareTo (Double object)

See Also

IComparable

Parameters

object
the double object to compare this object to.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif object is null.

Remarks

Compares this object to the specified double object to determine their relative order. There are two special cases:

  • Double.NaN is equal to Double.NaN and it is greater than any other double value, including Double.POSITIVE_INFINITY;
  • +0.0d is greater than -0.0d

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1