Garry's Mod Wiki

Garry's Mod Wiki

  string string.NiceSize( number bytes )

Description

Converts a digital filesize to human-readable text.

Arguments

1 number bytes
The filesize in bytes.

Returns

1 string
The human-readable filesize, in Bytes/KB/MB/GB (whichever is appropriate).

Example

Example output of this function.

Output: 63 KB

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...