The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DecimalFormatter class
Formats and parses decimal numbers.
Syntax
var decimalFormatter = new Windows.Globalization.NumberFormatting.DecimalFormatter(iIterable(String); var decimalFormatter = new Windows.Globalization.NumberFormatting.DecimalFormatter();
Attributes
- ActivatableAttribute(Windows.Globalization.NumberFormatting.IDecimalFormatterFactory, NTDDI_WIN8)
- ActivatableAttribute(NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The DecimalFormatter class has these types of members:
Constructors
The DecimalFormatter class has these constructors.
| Constructor | Description |
|---|---|
| DecimalFormatter() | Creates a DecimalFormatter object and initializes it to default values. |
| DecimalFormatter(IIterable(String), String) | Creates a DecimalFormatter object initialized by a language list and a geographic region. |
Methods
The DecimalFormatter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| Format(Double) | Returns a string representation of a Double number. |
| Format(Int64) | Returns a string representation of an Int64 number. |
| Format(UInt64) | Returns a string representation of a UInt64 number. |
| FormatDouble | Returns a string representation of a Double number. |
| FormatInt | Returns a string representation of an Int64 number. |
| FormatUInt | Returns a string representation of a UInt64 number. |
| ParseDouble | Attempts to parse a string representation of a Double number. |
| ParseInt | Attempts to parse a string representation of an integer. |
| ParseUInt | Attempts to parse a string representation of an unsigned integer. |
Properties
The DecimalFormatter class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the minimum number of digits to display for the fraction part of the number. | |
| Read-only | Gets the region that is used when formatting and parsing decimal numbers. | |
| Read/write | Gets or sets the minimum number of digits to display for the integer part of the number. | |
| Read/write | Gets or sets whether the decimal point of the number should always be displayed. | |
| Read/write | Gets or sets whether the integer part of the number should be grouped. | |
| Read-only | Gets the priority list of language identifiers that is used when formatting and parsing decimal numbers. | |
| Read/write | Gets or sets the numbering system that is used to format and parse decimal numbers. | |
| Read-only | Gets the geographic region that was most recently used to format or parse decimal values. | |
| Read-only | Gets the language that was most recently used to format or parse decimal values. |
Remarks
If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
