Format currencies
Posted: Fri May 20, 2016 5:25 pm
Hi guys!
I've modified one of the reports I found on GitHub (CreditReport to be exact) for my needs, but I need some help with formating the results.
At first the results where with all decimals and no prefixes but I kinda hardcode it to show them, but don´t know how to formats decimals and commas.
I got this
S/. -3165.88217599999
And I need something like these
S/. -3,165.88 or S/. -3 165.88
Thanks in advance to anyone who can guide me.
Klausen
I've modified one of the reports I found on GitHub (CreditReport to be exact) for my needs, but I need some help with formating the results.
At first the results where with all decimals and no prefixes but I kinda hardcode it to show them, but don´t know how to formats decimals and commas.
I got this
S/. -3165.88217599999
And I need something like these
S/. -3,165.88 or S/. -3 165.88
Thanks in advance to anyone who can guide me.
Klausen