I’m using the angular decimal pipe like this: How can I use the same pipe but on a typescript function? Answer I found in a similar question how to use it: just need to import DecimalPipe from @angular/commun and use it as a service: Also, make sure you add the DecimalPipe to your providers angular module: