Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

getCurrencySymbol

Retrieves the currency symbol for a given currency code.

See more...

      
      getCurrencySymbol(code: string, format: "wide" | "narrow", locale: string = 'en'): string
    
Parameters
code string

The currency code.

format "wide" | "narrow"

The format, wide or narrow.

locale string

A locale code for the locale format rules to use.

Optional. Default is 'en'.

Returns

string: The symbol, or the currency code if no symbol is available.

See also

Description

For example, for the default en-US locale, the code USD can be represented by the narrow symbol $ or the wide symbol US$.