Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Prototype and Arguments

 integer input number_of_bytes|ez_file_size( integer number_of_decimal   )

Argument nameTypeDescription
inputnumber_of_bytesintegerThe number in byte we want to convert
number_of_decimalinteger
The number of decimal we want our output to have

Usage

Using the field identifier as parameter

Code Block
languagehtml/xml
{{ 42698273|ez_file_size( 3 ) }} //Output with french site access : 42,698 MB

{{ 42698273|ez_file_size( 4 ) }} //Output with english site access : 42.6983 MB