From WikiChip
Difference between revisions of "mirc/identifiers/$bytes"
< mirc‎ | identifiers

m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +))
m (Bot: Fixing compatibility)
Line 32: Line 32:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v6.17
+
{{mIRC compatibility|6.17}}
  
 
== See Also ==
 
== See Also ==

Revision as of 03:18, 6 July 2014

$bytes allows you to format any number that you pass into various byte forms.

Synopsis

$bytes(<N>[,bkmgt3d])[.suf]

Parameters

NThe byte number that you wish to format.

bComma-formats the number for bytes.

kComma, and decimal-formats the number for kilobytes.

mComma, and decimal-formats the number for megabytes.

gComma, and decimal-formats the number for gigabytes.

tComma, and decimal-formats the number for terabytes.

3Returns the result in 3-digit format.

dReturns the value whilst retaining decimal point values.

Properties

.sufReturns the formatted bytes with the proper suffixes, which are: B, KB, MB, GB, and TB

Examples

Echo a large number with comma format to the active window

//echo -a $bytes(317889213,b)

Echo a byte value of GB to the active window with the suffix

//echo -a $bytes(10000000000,g).suf

Compatibility

Added: mIRC v6.17
Added on: 17 Feb 2006
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

[Expand]
v · d · e mIRC identifier list