String.int2size(4200);
(4) Result: "4.1 kb"
Would a few more arguments to this one hurt? Like if one would like to use 1000 or 1024, what prefixes (a,f,p,n,µ,m - k, M, G, T, P, E) and suffix to use.
/ Sten (Android) Eriksson (of Borg)
Previous text:
2002-12-05 21:34: Subject: CHANGES line of the day
Man kan också lägga till under String
Examples:
String.int2char(42);
(1) Result: "*"
String.int2hex(42);
(2) Result: "2a"
String.int2roman(42);
(3) Result: "XLII"
String.int2size(4200);
(4) Result: "4.1 kb"
/ Martin Nilsson (hehe Torgny)