$asc

From Scriptwiki
Revision as of 23:02, 29 November 2005 by Zyberdog (talk | contribs) (typo)

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.

See Also

$chr returns the character of an ascii number.