Rational.FloatValue Method

Definition

Returns the value of the specified number as a float.

[Android.Runtime.Register("floatValue", "()F", "")]
public override float FloatValue ();
[<Android.Runtime.Register("floatValue", "()F", "")>]
override this.FloatValue : unit -> single

Returns

the divided value of the numerator and denominator as a float.

Attributes

Remarks

Returns the value of the specified number as a float.

The float is calculated by converting both the numerator and denominator to a float; then returning the result of dividing the numerator by the denominator.

Java documentation for android.util.Rational.floatValue().

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.

Applies to