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.

9.1. Using strings

 
 

9.2. Lists and matrices

 
 

9.3. Working with integers and complex numbers

 
 
 

9.4. Revisiting randomness

 
 

9.5. Fun with data types: a single-screen RPG

 
 

9.6. Summary

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest