Can I show filesize in megabytes?
%filesize_natural%. For future reference, see the titleformat reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference).
%filesize_natural%. For future reference, see the titleformat reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference).
Sometimes it's in KB, sometimes in MB. How to make it always MB?
$div(%filesize%,1048576).$num($div($mul($mod(%filesize%,1048576),100),1048576),2)
--------------------------------------------------------
%filesize% displays the size in bytes. WIKIPEDIA says:
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.
Just what I needed. Thanks!
I use a similar string: $div(%filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB')