Class NumberFormatInfo
- Namespace
- System.Globalization
- Assembly
- mscorlib.dll
Provides culture-specific information for formatting and parsing numeric values.
public sealed class NumberFormatInfo
- Inheritance
-
NumberFormatInfo
- Inherited Members
- Extension Methods
Properties
CurrentInfo
Gets a read-only NumberFormatInfo that formats values based on the current culture.
public static NumberFormatInfo CurrentInfo { get; }
Property Value
- NumberFormatInfo
A read-only NumberFormatInfo based on the culture of the current thread.
NegativeSign
Gets the string that denotes that the associated number is negative.
public string NegativeSign { get; }
Property Value
- string
The string that denotes that the associated number is negative. The default for InvariantInfo is "-".
NumberDecimalSeparator
Gets the string to use as the decimal separator in numeric values.
public string NumberDecimalSeparator { get; }
Property Value
- string
The string to use as the decimal separator in numeric values. The default for InvariantInfo is ".".
NumberGroupSeparator
Gets the string that separates groups of digits to the left of the decimal in numeric values.
public string NumberGroupSeparator { get; }
Property Value
- string
The string that separates groups of digits to the left of the decimal in numeric values. The default for InvariantInfo is ",".
NumberGroupSizes
Gets the number of digits in each group to the left of the decimal in numeric values.
public int[] NumberGroupSizes { get; }
Property Value
- int[]
The number of digits in each group to the left of the decimal in numeric values. The default for InvariantInfo is a one-dimensional array with only one element, which is set to 3.
Exceptions
PositiveSign
Gets the string that denotes that the associated number is positive.
public string PositiveSign { get; }
Property Value
- string
The string that denotes that the associated number is positive. The default for InvariantInfo is "+".