Class NumberOptions
The options to apply when NumberFormatter a number.
Inherited Members
Namespace: Sepia.Globalization.Numbers
Assembly: Sepia.Globalization.dll
Syntax
public class NumberOptions
Fields
| Improve this Doc View SourceDefault
The default number options.
Declaration
public static readonly NumberOptions Default
Field Value
Type | Description |
---|---|
NumberOptions | Style = Decimal, UseGrouping = true. |
Properties
| Improve this Doc View SourceLength
The length for formatting numeric quantities.
Declaration
public NumberLength Length { get; set; }
Property Value
Type | Description |
---|---|
NumberLength |
Remarks
If the locale does not define a pattern for the number length, then the defaul number length is used.
Style
The rules for formatting numeric quantities.
Declaration
public NumberStyle Style { get; set; }
Property Value
Type | Description |
---|---|
NumberStyle | Default value is Decimal. |
UseGrouping
Determines if grouping seperators should be used.
Declaration
public bool UseGrouping { get; set; }
Property Value
Type | Description |
---|---|
Boolean | Defaults to true. |
Remarks
When true, clusters of integer digits are seperated with the Group.