Freigeben über


DecimalFormat.GroupingSize Property

Definition

Return the grouping size. -or- Set the grouping size.

public virtual int GroupingSize { [Android.Runtime.Register("getGroupingSize", "()I", "GetGetGroupingSizeHandler")] get; [Android.Runtime.Register("setGroupingSize", "(I)V", "GetSetGroupingSize_IHandler")] set; }
[<get: Android.Runtime.Register("getGroupingSize", "()I", "GetGetGroupingSizeHandler")>]
[<set: Android.Runtime.Register("setGroupingSize", "(I)V", "GetSetGroupingSize_IHandler")>]
member this.GroupingSize : int with get, set

Property Value

the grouping size

Attributes

Remarks

Property getter documentation:

Return the grouping size. Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3. Grouping size of zero designates that grouping is not used, which provides the same formatting as if calling #setGroupingUsed(boolean) setGroupingUsed(false).

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

Property setter documentation:

Set the grouping size. Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3. Grouping size of zero designates that grouping is not used, which provides the same formatting as if calling #setGroupingUsed(boolean) setGroupingUsed(false).

The value passed in is converted to a byte, which may lose information. Values that are negative or greater than java.lang.Byte#MAX_VALUE Byte.MAX_VALUE, will throw an IllegalArgumentException.

Java documentation for java.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.

Applies to