Character codes: Difference between revisions
→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
m (→{{header|Phix}}: added personal tag) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 2,508:
<syntaxhighlight lang="vbnet">Console.WriteLine(Chr(97)) 'Prints a
Console.WriteLine(Asc("a")) 'Prints 97</syntaxhighlight>
=={{header|V (Vlang)}}==
<syntaxhighlight lang="v (vlang)">fn main() {
println('a'[0]) // prints "97"
println('π'[0]) // prints "207"
Line 2,527:
97->0x61 207->0xcf 128->0x80
</pre>
=={{header|Wren}}==
Wren does not have a ''character'' type as such but one can use single character strings instead. Strings can contain any Unicode code point.
|