Welcome
The $asc identifier will return the ascii number of the specified character.
[edit]
Format
$asc(<character>)
[edit]
Parameters
- <character> The character that has the ascii number you want to return.
[edit]
Properties
None.
[edit]
Points To Note
To get the ascii number of a comma (,) or bracket you must either pass a variable or identifier to $asc.
Windows has a character map built in. Type /run charmap in mIRC to view it.
The ascii number for a space is 32.
[edit]
Examples
//echo -a $asc(!)
Output: 33
//var %a = , | echo -a $asc(%a)
This shows you how to get the ascii number of a special character.
//echo -a $asc(/)
Output: 47
//echo -a $asc($?)
This will display the ascii number of the character you type in the box that appears.
[edit]
Hacks
None.
[edit]
Related Articles
[edit]
Related Commands
None.
[edit]
Related Events
None.
[edit]
Related Identifiers
| Text and Number Identifiers |
|---|
| $abs • $acos • $and • $asc • $asin • $atan • $base • $biton • $bitoff • $bytes • $calc • $ceil • $chr • $compress • $cos • $count • $decode • $decompress • $encode • $floor • $int • $isbit • $islower • $isupper • $left • $len • $log • $longip • $lower • $mid • $noqt • $not • $or • $ord • $pos • $poscs • $qt • $rand • $remove • $removecs • $replace • $replacecs • $replacex • $replacexcs • $right • $round • $sin • $sqrt • $str • $strip • $stripped • $tan • $upper • $wrap • $xor |