From WikiChip
Editing mirc/identifiers/$bytes
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{mirc title|$bytes Identifier}}'''$bytes''' allows you to format | + | {{mirc title|$bytes Identifier}}'''$bytes''' allows you to format any number that you pass into various byte forms. |
− | |||
== Synopsis == | == Synopsis == | ||
− | <pre>$bytes(<N>[, | + | <pre>$bytes(<N>[,bkmgt3d])[.suf]</pre> |
+ | |||
== Parameters == | == Parameters == | ||
Line 13: | Line 13: | ||
* '''g''' - Comma, and decimal-formats the number for [[gigabytes]]. | * '''g''' - Comma, and decimal-formats the number for [[gigabytes]]. | ||
* '''t''' - Comma, and decimal-formats the number for [[terabytes]]. | * '''t''' - Comma, and decimal-formats the number for [[terabytes]]. | ||
− | |||
* '''3''' - Returns the result in 3-digit format. | * '''3''' - Returns the result in 3-digit format. | ||
* '''d''' - Returns the value whilst retaining decimal point values. | * '''d''' - Returns the value whilst retaining decimal point values. | ||
Line 20: | Line 19: | ||
== Properties == | == Properties == | ||
− | * '''.suf''' - Returns the formatted bytes with the proper suffixes, which are: '''B''', '''KB''', '''MB''', '''GB''', '''TB | + | * '''.suf''' - Returns the formatted bytes with the proper suffixes, which are: '''B''', '''KB''', '''MB''', '''GB''', and '''TB''' |
− | |||
== Examples == | == Examples == | ||
'''Echo a large number with comma format to the active window''' | '''Echo a large number with comma format to the active window''' | ||
Line 30: | Line 28: | ||
<source lang="mIRC">//echo -a $bytes(10000000000,g).suf</source> | <source lang="mIRC">//echo -a $bytes(10000000000,g).suf</source> | ||
− | + | == Compatibility == | |
− | + | {{mIRC compatibility|6.17}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See Also == | == See Also == | ||
* {{mIRC|$abs}} | * {{mIRC|$abs}} | ||
* {{mIRC|$base}} | * {{mIRC|$base}} | ||
* {{mIRC|$calc}} | * {{mIRC|$calc}} | ||
+ | {{mIRC identifier list}} | ||
+ | |||
+ | [[Category:mIRC identifiers|bytes]] |