Hi,
I've had the need to format some financial data that my bank returns. The API returns the value in pence, so £250 is returned as "25000" for example.
I've implemented some additional configuration settings and logic whereby it will process the data accordingly.
My fork and new branch:
https://github.com/mattbryce/MMM-JsonValue/tree/improvement/financial-data
It uses Intl.NumberFormat to format according to the parameters in the config file.
Would be great to merge to main after further testing :)
Thanks
Hi,
I've had the need to format some financial data that my bank returns. The API returns the value in pence, so £250 is returned as "25000" for example.
I've implemented some additional configuration settings and logic whereby it will process the data accordingly.
My fork and new branch:
https://github.com/mattbryce/MMM-JsonValue/tree/improvement/financial-data
It uses Intl.NumberFormat to format according to the parameters in the config file.
Would be great to merge to main after further testing :)
Thanks