[CAS] Inconsistency with commands. - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: [CAS] Inconsistency with commands. (/thread-7119.html) |
[CAS] Inconsistency with commands. - CH3791 - 10-28-2016 11:26 PM Sorry for yet another post guys but, I am getting confused about the difference between uppercase and lowercase commands. For some cases there doesn't seem to be a difference. STRING(); works the same as string(); LOCAL; works the same as local; **I think...** But in other commands, they act a bit weird. I have found 2 so far: Code: #cas Code: #cas What is the difference between the cases, and how should I know which one to use? RE: [CAS] Inconsistency with commands. - parisse - 10-29-2016 06:19 AM In CAS, you should use lowercase. char/asc is working in ASCII (8 bits char) extended to UTF8, while HOME is using UTF16 (16 bits char). For example asc("a") returns a list of 1 integer asc("é") returns a list of 2 integers and char does the reverse. Which means that the sqrt symbol is coded inside CAS with UTF8 corresponding to UTF16=8370, that is with 3 integers 226, 136, 154, that you get with asc. RE: [CAS] Inconsistency with commands. - CH3791 - 10-29-2016 08:01 AM (10-29-2016 06:19 AM)parisse Wrote: In CAS, you should use lowercase. char/asc is working in ASCII (8 bits char) extended to UTF8, while HOME is using UTF16 (16 bits char). For example Okk, thanks for clarifying. |