Documentation

Numbers


Numbers

byte_format( size, cut_zero )
Convert byte to more readable format. Use into template.

24 => 24 B,   1024 => 1 KB,   1500000 => 1.43 MB
{$size|byteFormat}




format_money( number, add_currency )
Format the money in the current format. If add_currency is true, it adds the currency symbol configured into the language. Use into template.

$ 10,000 for english,  10.000 € for european language
{$price|byteFormat}

 

Profiler output