[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/getLocaleNumberSymbol [Back]  [Original]

getLocaleNumberSymbol Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common

getLocaleNumberSymbol

function
deprecatedsince v18

Retrieves a localized number symbol that can be used to replace placeholders in number formats.

NumberSymbolInternationalization (i18n) Guide

Deprecation warning

Angular recommends relying on the Intl API for i18n. Use Intl.NumberFormat to format numbers instead.

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

    function getLocaleNumberSymbol(locale: string, symbol: NumberSymbol): string;
    @deprecated

    Angular recommends relying on the Intl API for i18n. Use Intl.NumberFormat to format numbers instead.

    @paramlocalestring

    The locale code.

    @paramsymbolNumberSymbol

    The symbol to localize. Must be one of NumberSymbol.

    @returnsstring

    The character for the localized symbol.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page