Issue
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:
please help.
Solution
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.
Answered By - JStw
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.