Angular 10 getCurrencySymbol() Method Last Updated : 24 May, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we are going to see what is getCurrencySymbol in Angular 10 and how to use it. getCurrencySymbol is used to retrieve the currency symbol for a given currency code Syntax: getCurrencySymbol(code, locale, format) Parameters: code: The currency codelocale: A locale code for the locale format rule to use.format: The format. Return Value: string: the formatted date string. NgModule: Module used by getCurrencySymbol is: CommonModule Approach: Create the Angular app to be used.In app.module.ts import LOCALE_ID because we need locale to be imported for using get getCurrencySymbol.import { LOCALE_ID, NgModule } from '@angular/core';In app.component.ts import getCurrencySymbol and LOCALE_IDinject LOCALE_ID as a public variable.In app.component.html show the local variable using string interpolationServe the angular app using ng serve to see the output. Example 1: app.component.ts import { getCurrencySymbol } from '@angular/common'; import {Component} from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { curr = getCurrencySymbol("USD", "wide"); } app.component.html <h1> GeeksforGeeks </h1> <p>{{curr }} 100</p> Output: Example 2: app.component.ts import { getCurrencySymbol } from '@angular/common'; import {Component} from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { curr = getCurrencySymbol("INR", "narrow"); } app.component.html <h1> GeeksforGeeks </h1> <p>{{curr }} 304</p> Output: Reference: https://angular.io/api/common/getCurrencySymbol Comment More infoAdvertise with us Next Article Angular 10 getCurrencySymbol() Method T taran910 Follow Improve Article Tags : Web Technologies AngularJS AngularJS-Function Angular10 Similar Reads Angular 10 formatNumber() Method In this article, we are going to see what is formatNumber in Angular 10 and how to use it. formatNumber is used to format a number based on our requirement in decimal form. Syntax: formatNumber(value, locale, digitsInfo) Parameters: value: The number to format.locale: A locale code for the locale fo 2 min read Angular 10 formatPercent() Method In this article, we are going to see what is formatPercent in Angular 10 and how to use it. formatPercent is used to format a number as a percentage according to locale rules. Syntax: formatPercent(value, locale, digitsInfo) Parameters: value: The number to format.locale: A locale code for the local 2 min read Angular10 getLocaleCurrencySymbol() Function In this article, we are going to see what is getLocaleCurrencySymbol in Angular 10 and how to use it. The getLocaleCurrencySymbol is used to get the currency symbol for the given locale. Syntax: getLocaleCurrencySymbol(locale: string): string | null NgModule: Module used by getLocaleCurrencySymbol i 2 min read What is CurrencyPipe in Angular 10 ? In this article, we are going to see what is CurrencyPipe in Angular 10 and how to use it. CurrencyPipe is used to transform a number to a currency string, formatted according to locale rules that determine group sizing and separator, decimal-point character Syntax: {{ value | currency }} Approach: 1 min read Angular 10 formatDate() Method In this article, we are going to see what is formatDate in Angular 10 and how to use it. formatDate is used to format a date according to locale rules. Syntax: formatDate(value, locale, format, timezone) Parameters: value: The number to format.locale: A locale code for the locale format.format: The 2 min read Like