![]() |
Display percentage (2 figures)
I have a Math formule in the admin section which calculates a percentage.
The outcome is displayed as: 42.3785466589% I would like to have it shortened to just 2 figures like: 42% How can i achieve that. Thanks |
Re: Display percentage (2 figures)
AH...
Just found it on the smarty website. just put |round:"0" in you rsmart variable and it does the job. f.i. {$percentage|round:"0"} |
All times are GMT -8. The time now is 10:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.