TypedValue.GetFraction(Single, Single) Method

Definition

Return the data for this value as a fraction.

[Android.Runtime.Register("getFraction", "(FF)F", "GetGetFraction_FFHandler")]
public virtual float GetFraction (float base, float pbase);
[<Android.Runtime.Register("getFraction", "(FF)F", "GetGetFraction_FFHandler")>]
abstract member GetFraction : single * single -> single
override this.GetFraction : single * single -> single

Parameters

base
Single

The base value of this fraction. In other words, a standard fraction is multiplied by this value.

pbase
Single

The parent base value of this fraction. In other words, a parent fraction (nn%p) is multiplied by this value.

Returns

Single

The complex floating point value multiplied by the appropriate base value depending on its unit.

Attributes

Remarks

Java documentation for android.util.TypedValue.getFraction(float, 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.

Applies to