| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display percentage (2 figures) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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"} |
|||||||
|
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|