0

hello guys i need tranform this value 23,769.05 to 23.769,05

in angular 11, searching I found this pipe but it has not worked for me:

enter image description here

enter image description here

please help.

mohamed
  • 149
  • 6
  • 1
    Does this answer your question? [How to specify locale thousand separator for number pipe in Angular 4](https://stackoverflow.com/questions/44672225/how-to-specify-locale-thousand-separator-for-number-pipe-in-angular-4) – Alejandro Oct 27 '22 at 15:01

1 Answers1

1

Seems to looks line an en-ES currency format. I suggest to have a look on the Number.toLocaleString() documentation

You can try something like:

transform(value: number): string {
   return (value || 0).toLocaleString('es-ES');
}

Please avoid pasting code images, just use the markdown editor for your code. It's clearly better for helping.

JStw
  • 1,155
  • 11
  • 20