Java.Lang.Double.Compare Method
Compares the two specified double values.

Syntax

[Android.Runtime.Register("compare", "(DD)I", "")]
public static int Compare (double double1, double double2)

Parameters

double1
the first value to compare.
double2
the second value to compare.

Returns

Documentation for this section has not yet been entered.

Remarks

Compares the two specified double values. 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