getLocaleNumberFormat • Angular
Retrieves a number format for a given locale.
Numbers are formatted using patterns, like #,###.00. For example, the pattern #,###.00
when used to format the number 12345.678 could result in "12'345,678". That would happen if the
grouping separator for your language is an apostrophe, and the decimal separator is a comma.
Important: The characters . , 0 # (and others below) are special placeholders
that stand for the decimal separator, and so on, and are NOT real characters.
You must NOT "translate" the placeholders. For example, don't change . to , even though in
your language the decimal point is written with a comma. The symbols should be replaced by the
local equivalents, using the appropriate NumberSymbol for your language.
Here are the special characters used in number patterns: