string.gigabyteString

Syntax string.gigabyteString (number)

Params number is a numeric value you wish to convert to gigabytes.

Action If the number is bigger than one gigabyte (1024 * 1024 * 1024) convert the number to gigabytes, and add "GB" to the end.

If it's less than one gigabyte it passes the number through string.megabyteString and returns its result.

Returns A formatted string suitable for displaying in a dialog or a Web page.

Examples string.gigabyteString (123456789)

   » "117.7MB"

string.gigabyteString (4096)

   » "4K"

string.gigabyteString (file.volumeSize (file.volumeFromPath (Frontier.getProgramPath ())))

   » "1.9GB"

Notes This verb is implemented as a script.

This verb is new in Frontier 6.2.

See Also string.KBytes

string.megabyteString

Discuss