Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberFormatInfo

Provides culture-specific information for formatting and parsing numeric values.

Full information about the culture and the application of overrides will be made available through this class at a later point.

See: https://msdn.microsoft.com/library/system.globalization.numberformatinfo.aspx

Hierarchy

  • NumberFormatInfo

Implements

Index

Constructors

constructor

Properties

CurrencyDecimalDigits

CurrencyDecimalDigits: number

Gets or sets the number of decimal places to use in currency values.

CurrencyDecimalSeparator

CurrencyDecimalSeparator: string

Gets or sets the string to use as the decimal separator in currency values.

CurrencyGroupSeparator

CurrencyGroupSeparator: string

Gets or sets the string that separates groups of digits to the left of the decimal in currency values.

NegativeSign

NegativeSign: string

Gets or sets the string that denotes that the associated number is negative.

NumberDecimalDigits

NumberDecimalDigits: number

Gets or sets the number of decimal places to use in numeric values.

NumberDecimalSeparator

NumberDecimalSeparator: string

Gets or sets the string to use as the decimal separator in numeric values.

NumberGroupSeparator

NumberGroupSeparator: string

Gets or sets the string that separates groups of digits to the left of the decimal in numeric values.

Private formatter_

formatter_: CustomFormatter

Private isWritable_

isWritable_: boolean

Private locales_

locales_: string | string[]

Static CurrentCurrency

CurrentCurrency: string

Gets or sets the currency string.

Static FormatterConstructor

FormatterConstructor: object

Gets or sets a constructor function to be used for creating culture-variant formatting instances.

Type declaration

Static InvariantInfo

InvariantInfo: NumberFormatInfo

Gets a read-only instance that is culture-independent (invariant).

Methods

getFormatter

Private resolveFormatInfo_

  • resolveFormatInfo_(locales: string | string[]): void

Private setInvariantFormatInfo_

  • setInvariantFormatInfo_(): void

Generated using TypeDoc