Chapter 9. Manipulating numbers and data types
This chapter covers
- Working with strings and real and complex numbers
- Making programs use random numbers
- Creating games and programs with matrices and lists
Numbers can take on many roles in your programs. They can represent integers or decimal numbers, they can represent the Boolean values true and false, and they can be used to hold angles or coordinates or health or time or any number of other things. But in TI-BASIC, as in almost any other programming language, numbers aren’t expressive enough for everything. Single numbers can’t store information about the sequences of characters that form words and sentences. The numeric variables that you’ve used so far can only clumsily be used for storing sequences of numbers. If you’ve read appendix A, you already know that TI-BASIC has solutions for these and other problems in the form of strings, lists, and matrices.