MCPcopy Create free account
hub / github.com/angular/angular / getLocaleNumberFormat

Function getLocaleNumberFormat

packages/common/src/i18n/locale_data_api.ts:544–547  ·  view source on GitHub ↗
(locale: string, type: NumberFormatStyle)

Source from the content-addressed store, hash-verified

542 * Let `Intl.NumberFormat` determine the number format instead
543 */
544export function getLocaleNumberFormat(locale: string, type: NumberFormatStyle): string {
545 const data = ɵfindLocaleData(locale);
546 return data[ɵLocaleDataIndex.NumberFormats][type];
547}
548
549/**
550 * Retrieves the symbol used to represent the currency for the main country

Callers 3

formatCurrencyFunction · 0.90
formatPercentFunction · 0.90
formatNumberFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected