$asc: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
added $asc($?) thingie
m typo
Line 8: Line 8:
To get the ascii value of a character, just type:
To get the ascii value of a character, just type:
  //echo -a $asc([[$?]])
  //echo -a $asc([[$?]])
and type the character, you want the ascii value of, in the coming popup and press enter.
Type the character you want the ascii value of in the prompt and press enter.
== See Also ==
== See Also ==
[[$chr]] returns the character of an ascii number.
[[$chr]] returns the character of an ascii number.


[[Category:Text_and_Number_Identifiers]]
[[Category:Text_and_Number_Identifiers]]

Revision as of 21:02, 29 November 2005

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.