Texas Instruments TI-89 Manual Do Utilizador
![Texas Instruments](https://files.manualsbrain.com/attachments/b46f99d826b2b0e0e5f558c5fb6483942eb9216b/common/fit/150/50/c15ea36eb1fb1cce99a3b94668675bfc78ce832d8d727d9a7bb51a125510/brand_logo.gif)
Programming
601
How Strings Are Used
How Strings Are Used
How Strings Are Used
How Strings Are Used
A string is a sequence of characters enclosed in "quotes." In programming, strings allow
the program to display information or prompt the user to perform some action. For
example:
the program to display information or prompt the user to perform some action. For
example:
Some input commands (such as
InputStr
) automatically store user input as a string and
do not require the user to enter quotation marks.
A string cannot be evaluated mathematically, even if it appears to be a numeric
expression. For example, the string "
expression. For example, the string "
61
" represents the characters "
6
" and "
1
", not the
number
61
.
Although you cannot use a string such as "
61
" or "
2x+4
" in a calculation, you can convert
a string into a numeric expression by using the
expr
command.
Disp "The result is",answer
– or –
Input "Enter the angle in degrees",ang1
– or –
"Enter the angle in degrees”
!
str1
Input str1,ang1