$asc

From Scriptwiki
Revision as of 17:42, 2 April 2006 by Doomie (talk | contribs) (just a little explanation)

Jump to: navigation, search

Returns the ascii number of the character C.

$asc(C)

Example

echo -a $asc(A) ; returns 65.


To get the ascii value of a character, just type:

//echo -a $asc($?)

Type the character you want the ascii value of in the prompt and press enter. This is necessary as you can't use something like 'echo -a $asc(,)', as mIRC would think the comma is seperating parameters and so return '* Too many parameters: $asc'.

See Also

$chr returns the character of an ascii number.