bytepattern(
NUMBER
)

The bytepattern( function converts a byte count to text: 543 Bytes, 543 Kb, 123 Mb, 3.2 Gb


Parameters

This function has one parameter:

number – Number of bytes.


Description

This function converts a byte count to text. Depending on the size of the number, it will be expressed as either bytes, kb (kilobytes), MB (megabytes), GB (gigabytes) or TB (terabytes).

bytepattern(1) ☞ 1 byte
bytepattern(2) ☞ 2 bytes
bytepattern(1234) ☞ 1.23 kB
bytepattern(12345) ☞ 12.3 kB
bytepattern(1234567) ☞ 1.23 MB
bytepattern(1234567123) ☞ 1.23 GB
bytepattern(1234567123456) ☞ 1.23 TB

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now is a native function, and handles terabytes (Panorama 6.0 only handled gigiabytes.)