Description
This function will return a string description of the number passed in.
Arguments
bytes is a number, which represents an amount of storage in bytes.
Action
This function will return a string description of the number passed in.
If the argument is less than 1024, the result will be in bytes.
If the argument is between 1024 and 1048576, then the result will be in kilobytes.
Otherwise, the result will be in megabytes.
Examples
ByteToText(1000)
Returns "1000 bytes".
ByteToText(345555)
Returns "337KB".