lustfingers 1 Posted December 22, 2014 Witam, powoli walczę z smarty otóż taki przykład: {$cena / 2 * 3} przykładowy wynik to 2.3476 próbuję to zaokrąglić do 2 miejsc po przecinku. Próbowałem już z |number_format:2 |string_format:"%.2f" |round:"2" Jak to powinno wyglądać? Share this post Link to post Share on other sites
Piotr Kaczor 128 Posted December 22, 2014 Cześć, spróbuj w taki sposób: {($cena / 2 * 3)|round:"2"} Pozdrawiam 1 Share this post Link to post Share on other sites
lustfingers 1 Posted December 22, 2014 Dzięki Piotrze. Share this post Link to post Share on other sites