HTML5 Data Bindings Formatter Support Product Page
formatting numbers
Asked 16 Nov 2015 08:11:00
1
has this question
16 Nov 2015 08:11:00 Greta Garberini posted:
In File Properties of the new File Upload Extension there is a nice function called size which shows the filesize in Bytes. I need to convert this into kiB or Megabytes. What is the best syntax for this? I tried to divide it but then I get A LOT of decimals wich I cannot get rid of for display.Any suggestions?
Replies
Replied 16 Nov 2015 08:58:06
16 Nov 2015 08:58:06 Teodor Kuduschiev replied:
Hi Greta,
Dividing is indeed the best solution. You just need to also apply the "ceil" filter or the "Format Number" filter of the HTML5 Data Bindings Formatter.
Dividing is indeed the best solution. You just need to also apply the "ceil" filter or the "Format Number" filter of the HTML5 Data Bindings Formatter.