#### ByteToText

##### ByteToText(byte)

This function will return the size of a message in the "appropriate" unit.

- If the parameter is less than 1024, the result will be in bytes.
- If the parameter is between 1024 and 1048576, then the result will be in kilobytes.
- Otherwise, the result will be in megabytes.

Parameter

Byte is the size of a message in bytes.

Return value

String.

Examples

- `ByteToText(1000)` - Returns 1000 bytes.
- `ByteToText(251561)` - Returns 245 KB.
- `ByteToText(25454464)` - Returns 24 MB.