ID:166613
 
How would I make a proc that converts (bytes - kilobytes - megabytes - gigabytes - terabytes - petabytes - exabytes - zettabytes - yottabytes)?

Edit: I got it working.
Y2kEric wrote:
How would I make a proc that converts (bytes - kilobytes - megabytes - gigabytes - terabytes - petabytes - exabytes - zettabytes - yottabytes)?

Like the metric system uses a base of 10, this system uses a 1,024 base --- 1,024 bytes makes a kilobyte, 1,024 kilobytes makes a megabyte, and so on.

Hiead