©7nov01/[email protected]
right(s,dim(s)-p+1)
EndFunc
For example,
right1("123456789",7)
returns "789".
We don't need a replacement function for left(), because the number of elements used as the argument
in that function is the position in the string.
[8.8] Relational operators compare strings
The relational operators (=, <, >, etc.) work on strings as well as numbers, although this is not specified
in the calculator Guidebook. For example
"a" > "b"
returns false
"a" < "b"
returns true
"a" > "A"
returns true
"xyz" = "xyz"
returns true
Comparisons for lists and matrices with string elements are performed element by element, for
example
{"a","b","c"} > {"c","b","a"}
returns {false, false, true}
Strings are sorted in order of the TI-89 / TI-92 Plus character codes as found in Appendix B of the
Guidebook. For example, these comparisons all return true:
"A" < "a"
character code 65 is less than code 97
"<" < "a"
character code 60 is less than code 97
If the strings are of unequal length, then shorter strings are 'less' than longer strings with identical initial
characters; these expressions are true:
"aa" < "aaa"
returns true
"a" < "azz"
returns true
This behavior conforms to lexicographical (English dictionary) ordering, in which short words precede
longer words. This character-code ordering may not necessarily be the ordering you want. As an
example, the character codes for all the international characters are greater than the English
alphabetic characters. This means that
"cat" < "ä"
returns true
The commands SortA and SortD also use these ordering rules when sorting lists and vectors with
string elements.
8 - 5
Summary of Contents for TI-92+
Page 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Page 53: ...LCD connector detail PCB switch side 1 42...
Page 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Page 55: ...Key cap detail 1 44...
Page 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Page 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...