次の方法で共有


TypedValue.ComplexToFraction(Int32, Single, Single) Method

Definition

Converts a complex data value holding a fraction to its final floating point value.

[Android.Runtime.Register("complexToFraction", "(IFF)F", "")]
public static float ComplexToFraction (int data, float base, float pbase);
[<Android.Runtime.Register("complexToFraction", "(IFF)F", "")>]
static member ComplexToFraction : int * single * single -> single

Parameters

data
Int32

A complex data value holding a unit, magnitude, and mantissa.

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

Converts a complex data value holding a fraction to its final floating point value. The given <var>data</var> must be structured as a #TYPE_FRACTION.

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