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
Format currencies
Moderator: Renato
Format currencies
- Attachments
-
- Scotiabank Visa.grm
- (1.68 KiB) Downloaded 544 times
-
- Developer
- Posts: 1535
- Joined: Sat Dec 06, 2008 2:27 pm
- Are you a spam bot?: No
- Location: Sankt-Petersburg, Russia
Re: Format currencies
Use JS for formating. In the sample file the code from line
<!-- Format numbers -->
<!-- Format numbers -->
Re: Format currencies
Not really good with JavaScript but I found a way to format it from SQL.
Thank you very much!
Thank you very much!