Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, you explored the two classes of objects that AppleScript uses to represent numbers: integer (used for whole numbers only) and real. You learned how to perform math and comparison operations on numbers, how to round real numbers to whole values, and how to generate numbers at random. You then put this knowledge to use by developing a custom command for rounding numbers to a given number of decimal places, a fun card game, and a simple timer program.
In the next chapter, you will learn how AppleScript represents another frequently used piece of everyday information: the humble date.