Läs på engelska

Dela via


MeasureUnit.Reciprocal Method

Definition

Computes the reciprocal of this MeasureUnit, with the numerator and denominator flipped.

C#
[Android.Runtime.Register("reciprocal", "()Landroid/icu/util/MeasureUnit;", "GetReciprocalHandler", ApiSince=33)]
public virtual Android.Icu.Util.MeasureUnit? Reciprocal();

Returns

The reciprocal of the target unit.

Attributes

Remarks

Computes the reciprocal of this MeasureUnit, with the numerator and denominator flipped.

For example, if the receiver is "meter-per-second", the unit "second-per-meter" is returned.

NOTE: Only works on SINGLE and COMPOUND units. If this is a MIXED unit, an error will occur. For more information, Complexity.

Java documentation for android.icu.util.MeasureUnit.reciprocal().

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35