Jak wyświetlić liczbę po przecinku w smarty
		
		
		
		
		
		Przejdź do nawigacji
		Przejdź do wyszukiwania
		
		
	
string_format
<?php
$smarty->assign('number', 23.5787446);
?>
Where template is:
{$number}
{$number|string_format:"%.2f"}
{$number|string_format:"%d"}
Will output:
23.5787446 23.58 24