Jump to content

Character codes: Difference between revisions

m
no edit summary
mNo edit summary
Line 1,469:
uBasic/4tH is an integer BASIC, just like Tiny BASIC. However, the function ORD() is supported, just as CHR(). The latter is only allowed within a PRINT statement.
<lang>z = ORD("a") : PRINT CHR(z) ' Prints "a"</lang>
 
=={{header|Ursa}}==
<lang ursa># outputs the character value for 'a'
out (ord "a") endl console
# outputs the character 'a' given its value
out (chr 97) endl console</lang>
 
=={{header|Ursala}}==
Character code functions are not built in but easily defined as reifications of
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.