From WikiChip
Difference between revisions of "mirc/identifiers/$bytes"
(Created $bytes identifier - mIRC) |
|||
Line 1: | Line 1: | ||
− | '''$bytes''' allows you to format any number that you pass | + | '''$bytes''' allows you to format any number that you pass into various byte forms. |
== Synopsis == | == Synopsis == | ||
Line 9: | Line 9: | ||
<span style="display: inline-block; width: 50px;">'''b'''</span>Comma-formats the number for bytes. | <span style="display: inline-block; width: 50px;">'''b'''</span>Comma-formats the number for bytes. | ||
− | <span style="display: inline-block; width: 50px;">'''k'''</span>Comma, and decimal-formats the number for kilobytes. | + | <span style="display: inline-block; width: 50px;">'''k'''</span>Comma, and decimal-formats the number for [[kilobytes]]. |
− | <span style="display: inline-block; width: 50px;">'''m'''</span>Comma, and decimal-formats the number for megabytes. | + | <span style="display: inline-block; width: 50px;">'''m'''</span>Comma, and decimal-formats the number for [[megabytes]]. |
− | <span style="display: inline-block; width: 50px;">'''g'''</span>Comma, and decimal-formats the number for gigabytes. | + | <span style="display: inline-block; width: 50px;">'''g'''</span>Comma, and decimal-formats the number for [[gigabytes]]. |
− | <span style="display: inline-block; width: 50px;">'''t'''</span>Comma, and decimal-formats the number for terabytes. | + | <span style="display: inline-block; width: 50px;">'''t'''</span>Comma, and decimal-formats the number for [[terabytes]]. |
<span style="display: inline-block; width: 50px;">'''3'''</span>Returns the result in 3-digit format. | <span style="display: inline-block; width: 50px;">'''3'''</span>Returns the result in 3-digit format. |
Revision as of 22:36, 23 June 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/02/2006