Java.Lang.Float.CompareTo Method
Compares this object to the specified float object to determine their relative order.

Syntax

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

See Also

IComparable

Parameters

object
the float object to compare this object to.

Returns

Documentation for this section has not yet been entered.

Remarks

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

  • Float.NaN is equal to Float.NaN and it is greater than any other float value, including Float.POSITIVE_INFINITY;
  • +0.0f is greater than -0.0f

[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