IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
filesize in megabytes
garthwen
post Jan 13 2010, 03:34
Post #1





Group: Members
Posts: 21
Joined: 13-December 08
Member No.: 64437



Can I show filesize in megabytes?
Go to the top of the page
+Quote Post
Zarkon
post Jan 13 2010, 03:36
Post #2





Group: Members
Posts: 200
Joined: 7-November 04
Member No.: 18008



%filesize_natural%. For future reference, see the titleformat reference.
Go to the top of the page
+Quote Post
garthwen
post Jan 13 2010, 03:51
Post #3





Group: Members
Posts: 21
Joined: 13-December 08
Member No.: 64437



QUOTE (Zarkon @ Jan 12 2010, 21:36) *
%filesize_natural%. For future reference, see the titleformat reference.


Sometimes it's in KB, sometimes in MB. How to make it always MB?
Go to the top of the page
+Quote Post
Robertina
post Jan 13 2010, 04:33
Post #4





Group: Members
Posts: 1306
Joined: 4-January 09
Member No.: 65169



$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 post has been edited by Robertina: Jan 13 2010, 05:02
Go to the top of the page
+Quote Post
garthwen
post Jan 13 2010, 20:33
Post #5





Group: Members
Posts: 21
Joined: 13-December 08
Member No.: 64437



Just what I needed. Thanks!
Go to the top of the page
+Quote Post
TuNk77
post Jan 15 2010, 06:57
Post #6





Group: Members
Posts: 136
Joined: 1-December 06
From: Norway
Member No.: 38241



I use a similar string: $div(%filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB')
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2014 - 00:21