다음을 통해 공유


DecimalFormat.SecondaryGroupingSize Property

Definition

<strong>[icu]</strong> Returns the secondary grouping size in use. -or- <strong>[icu]</strong> <strong>Grouping:</strong> Sets the secondary grouping size (distance between grouping separators after the first separator) used when formatting large numbers.

public virtual int SecondaryGroupingSize { [Android.Runtime.Register("getSecondaryGroupingSize", "()I", "GetGetSecondaryGroupingSizeHandler", ApiSince=24)] get; [Android.Runtime.Register("setSecondaryGroupingSize", "(I)V", "GetSetSecondaryGroupingSize_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getSecondaryGroupingSize", "()I", "GetGetSecondaryGroupingSizeHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setSecondaryGroupingSize", "(I)V", "GetSetSecondaryGroupingSize_IHandler", ApiSince=24)>]
member this.SecondaryGroupingSize : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

<strong>[icu]</strong> Returns the secondary grouping size in use.

Java documentation for android.icu.text.DecimalFormat.getSecondaryGroupingSize().

Property setter documentation:

<strong>[icu]</strong> <strong>Grouping:</strong> Sets the secondary grouping size (distance between grouping separators after the first separator) used when formatting large numbers. In many south Asian locales, this is set to 2.

For example, with primary grouping size 3 and secondary grouping size 2, the number 1234567 will be formatted as "12,34,567".

Grouping size can also be specified in the pattern: for example, "#,##,##0" corresponds to a primary grouping size of 3 and a secondary grouping size of 2.

Java documentation for android.icu.text.DecimalFormat.setSecondaryGroupingSize(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