Character Codes
This page contains the character codes used internally by the calculator. This table can be useful in particular with the char() and ord() commands.
Characters in the following ranges can always be used for variable names:
- 65-90, 97-122 (the usual alphabet, case insensitive)
- 128-138, 141, 143-148, 181 (Greek letters, case sensitive: ω is not the same as Ω)
- 192-214, 216-246, 248-255 (international characters, case insensitive)
The following characters can be used as variable names, except by themselves as a single-letter variable:
- the numbers 0-9 (these are also invalid whenever they begin a variable name)
- the underscore _
- the Greek letters ∏ and ∑
A reference to an N-letter variable name takes N+2 bytes. The only exception is with one-letter names from the usual alphabet, a-z, which take 1 byte rather than 3.
| Value | Char | Value | Char | Value | Char | Value | Char | Value | Char | Value | Char | Value | Char | Value | Char |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0. | NUL | 32. | space | 64. | @ | 96. | ‘ | 128. | α | 160. | … | 192. | À | 224. | à |
| 1. | SOH | 33. | ! | 65. | A | 97. | a | 129. | β | 161. | ¡ | 193. | Á | 225. | á |
| 2. | STX | 34. | " | 66. | B | 98. | b | 130. | Γ | 162. | ¢ | 194. | Â | 226. | â |
| 3. | ETQ | 35. | # | 67. | C | 99. | c | 131. | γ | 163. | £ | 195. | Ã | 227. | ã |
| 4. | EOT | 36. | $ | 68. | D | 100. | d | 132. | Δ | 164. | ¤ | 196. | Ä | 228. | ä |
| 5. | ENQ | 37. | % | 69. | E | 101. | e | 133. | δ | 165. | ¥ | 197. | Å | 229. | å |
| 6. | ACK | 38. | & | 70. | F | 102. | f | 134. | ε | 166. | ¦ | 198. | Æ | 230. | æ |
| 7. | BEL | 39. | ’ | 71. | G | 103. | g | 135. | ζ | 167. | § | 199. | Ç | 231. | ç |
| 8. | BS | 40. | ( | 72. | H | 104. | h | 136. | θ | 168. | √ | 200. | È | 232. | è |
| 9. | TAB | 41. | ) | 73. | I | 105. | i | 137. | λ | 169. | © | 201. | É | 233. | é |
| 10. | LF | 42. | * | 74. | J | 106. | j | 138. | ξ | 170. | a | 202. | Ê | 234. | ê |
| 11. | VT | 43. | + | 75. | K | 107. | k | 139. | ∏ | 171. | « | 203. | Ë | 235. | ë |
| 12. | FF | 44. | , | 76. | L | 108. | l | 140. | π | 172. | ¬ | 204. | Ì | 236. | ì |
| 13. | CR | 45. | - | 77. | M | 109. | m | 141. | ρ | 173. | ‾ | 205. | Í | 237. | í |
| 14. | (lock) | 46. | . | 78. | N | 110. | n | 142. | ∑ | 174. | ® | 206. | Î | 238. | î |
| 15. | ✓ | 47. | / | 79. | O | 111. | o | 143. | σ | 175. | - | 207. | Ï | 239. | ï |
| 16. | ■ | 48. | 0 | 80. | P | 112. | p | 144. | τ | 176. | ° | 208. | Ð | 240. | ð |
| 17. | ◀ | 49. | 1 | 81. | Q | 113. | q | 145. | φ | 177. | ± | 209. | Ñ | 241. | ñ |
| 18. | ▶ | 50. | 2 | 82. | R | 114. | r | 146. | ψ | 178. | ² | 210. | Ò | 242. | ò |
| 19. | ▲ | 51. | 3 | 83. | S | 115. | s | 147. | Ω | 179. | ³ | 211. | Ó | 243. | ó |
| 20. | ▼ | 52. | 4 | 84. | T | 116. | t | 148. | ω | 180. | ‾¹ | 212. | Ô | 244. | ô |
| 21. | ← | 53. | 5 | 85. | U | 117. | u | 149. | E | 181. | μ | 213. | Õ | 245. | õ |
| 22. | → | 54. | 6 | 86. | V | 118. | v | 150. | e | 182. | ¶ | 214. | Ö | 246. | ö |
| 23. | ↑ | 55. | 7 | 87. | W | 119. | w | 151. | i | 183. | · | 215. | × | 247. | ÷ |
| 24. | ↓ | 56 | 8 | 88. | X | 120. | x | 152. | r | 184. | + | 216. | Ø | 248. | ø |
| 25. | ◀ | 57. | 9 | 89. | Y | 121. | y | 153. | T | 185. | ¹ | 217. | Ù | 249. | ù |
| 26. | ▶ | 58. | : | 90. | Z | 122. | z | 154. | ![]() |
186. | o | 218. | Ú | 250. | ú |
| 27. | ↑ | 59. | ; | 91. | [ | 123. | { | 155. | ![]() |
187. | » | 219. | Û | 251. | û |
| 28. | ∪ | 60. | < | 92. | \ | 124. | | | 156. | ≤ | 188. | d | 220. | Ü | 252. | ü |
| 29. | ∩ | 61. | = | 93. | ] | 125. | } | 157. | ≠ | 189. | ∫ | 221. | Ý | 253. | ý |
| 30. | ⊂ | 62. | > | 94. | ^ | 126. | ~ | 158. | ≥ | 190. | ∞ | 222. | Þ | 254. | þ |
| 31. | ∈ | 63. | ? | 95. | _ | 127. | ♦ | 159. | ∠ | 191. | ¿ | 223. | ß | 255. | ÿ |

