DecimalFormat.GroupingSize Property
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.
Returns the primary grouping size in use. -or- <strong>Grouping:</strong> Sets the primary grouping size (distance between grouping separators) used when formatting large numbers.
public virtual int GroupingSize { [Android.Runtime.Register("getGroupingSize", "()I", "GetGetGroupingSizeHandler", ApiSince=24)] get; [Android.Runtime.Register("setGroupingSize", "(I)V", "GetSetGroupingSize_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getGroupingSize", "()I", "GetGetGroupingSizeHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setGroupingSize", "(I)V", "GetSetGroupingSize_IHandler", ApiSince=24)>]
member this.GroupingSize : int with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Returns the primary grouping size in use.
Java documentation for android.icu.text.DecimalFormat.getGroupingSize()
.
Property setter documentation:
<strong>Grouping:</strong> Sets the primary grouping size (distance between grouping separators) used when formatting large numbers. For most locales, this defaults to 3: the number of digits between the ones and thousands place, between thousands and millions, and so forth.
For example, with a grouping size of 3, the number 1234567 will be formatted as "1,234,567".
Grouping size can also be specified in the pattern: for example, "#,##0" corresponds to a grouping size of 3.
Java documentation for android.icu.text.DecimalFormat.setGroupingSize(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.