Use thousand separator in Angular with DecimalPipe

-2.5 | number:'1.0-0'
  • A minimum of 1 digit will be shown before decimal point
  • It will show at least 0 digits after decimal point
  • But not more than 0 digits

References
https://angular.io/api/common/DecimalPipe
https://stackoverflow.com/questions/38477970/what-are-the-parameters-for-the-number-pipe-angular-2

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.