Jump to content

Character codes: Difference between revisions

no edit summary
No edit summary
Line 1,046:
fansh> 'a'.toInt
97</syntaxhighlight>
 
=={{header|Fennel}}==
<syntaxhighlight lang="fennel">
(string.byte :A) ; 65
(string.char 65) ; "A"
</syntaxhighlight>
 
=={{header|Forth}}==
As with C, characters are just integers on the stack which are treated as ASCII.
62

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.