Float.CompareTo(Float) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two Float objects numerically.
[Android.Runtime.Register("compareTo", "(Ljava/lang/Float;)I", "")]
public int CompareTo (Java.Lang.Float anotherFloat);
[<Android.Runtime.Register("compareTo", "(Ljava/lang/Float;)I", "")>]
member this.CompareTo : Java.Lang.Float -> int
Parameters
- anotherFloat
- Float
the Float to be compared.
Returns
the value 0 if anotherFloat is
numerically equal to this Float; a value
less than 0 if this Float
is numerically less than anotherFloat;
and a value greater than 0 if this
Float is numerically greater than
anotherFloat.
- Attributes
Remarks
Java documentation for java.lang.Float.compareTo(java.lang.Float).
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.