We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4275248 commit 13a276dCopy full SHA for 13a276d
1 file changed
tools/fileSize.src
@@ -0,0 +1,12 @@
1
+fileSize = function(filename)
2
+ num = 0
3
+ for i in range(0, filename.len - 1)
4
+ num = num + (filename[i].code * (i + 1))
5
+ end for
6
+
7
+ num = floor(110000 + 6990000 * (num % 1000 / 1000)) + num % 10
8
9
+ Names = ["b", "Kb", "Mb", "Gb"]
10
+ n = floor(num ^ 0.1 / 3) + 1
11
+ return round(num / (1000 ^ n), 2) + Names[n]
12
+end function
0 commit comments