Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: filesize in megabytes (Read 3432 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

filesize in megabytes

Can I show filesize in megabytes?

 

filesize in megabytes

Reply #1
%filesize_natural%. For future reference, see the titleformat reference.


filesize in megabytes

Reply #3
$div(%filesize%,1048576).$num($div($mul($mod(%filesize%,1048576),100),1048576),2)

--------------------------------------------------------
%filesize% displays the size in bytes. WIKIPEDIA says:

Quote
1 Kilobyte (kB) = 1024 Byte, 1 Megabyte (MB) = 1024 Kilobyte = 1024 · 1024 Byte = 1.048.576 Byte

That is the reason for this strange 1048576 in the syntax.

Reason for edit: additional hint.
This is HA. Not the Jerry Springer Show.

filesize in megabytes

Reply #4
Just what I needed. Thanks!

filesize in megabytes

Reply #5
I use a similar string: $div(%filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB')