Java.Lang.Float.Compare Method
Compares the two specified float values.

Syntax

[Android.Runtime.Register("compare", "(FF)I", "")]
public static int Compare (float float1, float float2)

Parameters

float1
the first value to compare.
float2
the second value to compare.

Returns

Documentation for this section has not yet been entered.

Remarks

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