Initializes a new, culturally independent instance.
Creates a copy of the instance.
Retrieves an object defining how to format the specified type.
Property. Retrieves the number of decimal places to use in currency values.
Property. Assigns the number of decimal places to use in currency values.
Property. Retrieves the string used as the decimal separator in currency values.
Property. Assigns the string used as the decimal separator in currency values.
Property. Retrieves the string separating groups of digits to the left of the decimal place in currency values.
Property. Assigns the string separating groups of digits to the left of the decimal place in currency values.
Property. Retrieves the number of digits int each group to the left of the decimal place in currency values.
Property. Assigns the number of digits int each group to the left of the decimal place in currency values.
Property. Retrieves the formal pattern to use for negative currency values.
Property. Assigns the formal pattern to use for negative currency values.
Property. Retrieves the formal pattern to use for positive currency values.
Property. Assigns the formal pattern to use for positive currency values.
Property. Retrieves the string used as the currency symbol.
Property. Assigns the string used as the currency symbol.
Property. Retrieves a read-only NumberFormat instance from the current culture.
Property. Retrieves a value indicating whether the instance is read-only.
Property. Retrieves the string representing the NaN (not a number) value.
Property. Assigns the string representing the NaN (not a number) value.
Property. Assigns a string array of native equivalents of the digits 0 to 9.
Property. Retrieves a string array of native equivalents of the digits 0 to 9.
Property. Retrieves the string representing negative infinity.
Property. Assigns the string representing negative infinity.
Property. Retrieves the string denoting that a number is negative.
Property. Assigns the string denoting that a number is negative.
Property. Retrieves the number of decimal places used for numbers.
Assigns the number of decimal digits used for numbers.
Property. Retrieves the string used as the decimal separator in numbers.
Property. Assigns the string used as the decimal separator in numbers.
Property. Retrieves the string separating groups of digits to the left of the decimal place in numbers.
Property. Assigns the string separating groups of digits to the left of the decimal place in numbers.
Property. Retrieves the number of digits int each group to the left of the decimal place in numbers.
Property. Assigns the number of digits int each group to the left of the decimal place in numbers.
Property. Retrieves the format pattern for negative numbers.
Property. Assigns the format pattern for negative numbers.
Property. Retrieves the string representing positive infinity.
Property. Assigns the string representing positive infinity.
Property. Retrieves the string denoting that a number is positive.
Property. Assigns the string denoting that a number is positive.
Retrieves the NumberFormat for the specified IFormatService.
$(ANCHOR NumberFormat_invariantFormat) Property. Retrieves the read-only, culturally independent NumberFormat instance.
$(ANCHOR IFormatService_getFormat) Retrieves an object that supports formatting for the specified _type.
The following example shows how to retrieve an instance of NumberFormat for a Culture and use it to display number formatting information.
import tango.io.Print, tango.text.locale.Common; void main(char[][] args) { foreach (c; Culture.getCultures(CultureTypes.Specific)) { if (c.twoLetterLanguageName == "en") { NumberFormat fmt = c.numberFormat; Println("The currency symbol for %s is '%s'", c.englishName, fmt.currencySymbol); } } } // Produces the following output: // The currency symbol for English (United States) is '$' // The currency symbol for English (United Kingdom) is '£' // The currency symbol for English (Australia) is '$' // The currency symbol for English (Canada) is '$' // The currency symbol for English (New Zealand) is '$' // The currency symbol for English (Ireland) is '€' // The currency symbol for English (South Africa) is 'R' // The currency symbol for English (Jamaica) is 'J$' // The currency symbol for English (Caribbean) is '$' // The currency symbol for English (Belize) is 'BZ$' // The currency symbol for English (Trinidad and Tobago) is 'TT$' // The currency symbol for English (Zimbabwe) is 'Z$' // The currency symbol for English (Republic of the Philippines) is 'Php'
$(ANCHOR _NumberFormat) Determines how numbers are formatted, according to the current culture. Remarks: Numbers are formatted using format patterns retrieved from a NumberFormat instance. This class implements IFormatService.getFormat.