Udostępnij za pośrednictwem


DecimalFormat.Multiplier Property

Definition

Gets the multiplier for use in percent, per mille, and similar formats. -or- Sets the multiplier for use in percent, per mille, and similar formats.

public virtual int Multiplier { [Android.Runtime.Register("getMultiplier", "()I", "GetGetMultiplierHandler")] get; [Android.Runtime.Register("setMultiplier", "(I)V", "GetSetMultiplier_IHandler")] set; }
[<get: Android.Runtime.Register("getMultiplier", "()I", "GetGetMultiplierHandler")>]
[<set: Android.Runtime.Register("setMultiplier", "(I)V", "GetSetMultiplier_IHandler")>]
member this.Multiplier : int with get, set

Property Value

the multiplier

Attributes

Remarks

Property getter documentation:

Gets the multiplier for use in percent, per mille, and similar formats.

Java documentation for java.text.DecimalFormat.getMultiplier().

Property setter documentation:

Sets the multiplier for use in percent, per mille, and similar formats. For a percent format, set the multiplier to 100 and the suffixes to have '%' (for Arabic, use the Arabic percent sign). For a per mille format, set the multiplier to 1000 and the suffixes to have '&#92;u2030'.

Example: with multiplier 100, 1.23 is formatted as "123", and "123" is parsed into 1.23.

Java documentation for java.text.DecimalFormat.setMultiplier(int).

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