Project

General

Profile

$asc » History » Version 5

Per Amundsen, 02/16/2023 05:18 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$asc(C)*
4
5 2 Per Amundsen
Returns the "ASCII":http://www.asciitable.com/ value of the character C.
6 1 Per Amundsen
7 4 Per Amundsen
_Also see [[$chr]] for the reversed version._
8
9 1 Per Amundsen
*Parameters*
10
11 5 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| C | The character. |
14 1 Per Amundsen
15
*Example*
16
17
<pre>
18 3 Per Amundsen
; Returns 65.
19 1 Per Amundsen
//echo -ag $asc(A)  
20
21 3 Per Amundsen
; returns 42
22 1 Per Amundsen
//echo -ag $asc(*)
23
</pre>