Best way to format json numbers to local number with comma as decimal separator
Best way to format json numbers to local number with comma as decimal separator
marceloverdijk
Posts: 22Questions: 3Answers: 0
I'm using a json response including numbers like:
'amount': 10.5
I want to render this in the table like 10,50 (note the , for decimal separator and always 2 digits behind separator).
Note that eg a value of .2 I want to render like 0,20
I've looked on the plugins page (especially the Formatted numbers plugin) but don't understand how I could do this best.
Any help appreciated.
'amount': 10.5
I want to render this in the table like 10,50 (note the , for decimal separator and always 2 digits behind separator).
Note that eg a value of .2 I want to render like 0,20
I've looked on the plugins page (especially the Formatted numbers plugin) but don't understand how I could do this best.
Any help appreciated.
This discussion has been closed.