Anonymous user
File size distribution: Difference between revisions
→{{header|zkl}}: didn't like how I formated
(added zkl) |
(→{{header|zkl}}: didn't like how I formated) |
||
Line 17:
println("Found %d files, %,d bytes, %,d mean.".fmt(N,SZ,SZ/N));
scale:=50.0/(0.0).max(dist);
szchrs,idx,comma:=",nnn"*20, -1, Walker.cycle(0,0,1).next;
println("%15s %s (* = %.2f)".fmt("File size","Number of files",1.0/scale));
foreach sz,cnt in ([0..].zip(dist[0,maxd])){
idx-=1 + comma();
}</lang>
{{out}}
|