Jump to content

Character codes: Difference between revisions

→‎{{header|BQN}}: Other direction
(→‎{{header|BQN}}: Other direction)
Line 628:
 
=={{header|BQN}}==
BQN's character arithmetic makes it easy convert between numbers and characters. Since arithmetic generalizes to arrays, the same function works for both integers and arrays. Here, only the conversion from number to character is defined, since it can be automatically inverted with Undo (<code>⁼</code>): the inverse simply subtracts <code>@</code>.
 
<lang bqn> FromCharCode ← @⊸+
Line 635:
'a'
FromCharCode 97‿67‿126
"aC~"</lang>
FromCharCode⁼ 'a'
97</lang>
 
=={{header|Bracmat}}==
99

edits

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