TypedValue.GetFraction(Single, Single) 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.
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
The complex floating point value multiplied by the appropriate base value depending on its unit.
- Attributes
Remarks
Return the data for this value as a fraction. Only use for values whose type is #TYPE_FRACTION
.
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.