• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Manipulating Information > Calculating with the Math Object

Calculating with the Math Object

The Math object lets you access trigonometric functions such as sine, cosine, and tangent; logarithmic functions; rounding functions; and mathematical constants such as pi and e. Table 11.1 summarizes the methods and properties of the Math object. As with the Key, Mouse, Selection, and Stage objects, you don’t need to instantiate the Math object to call on its methods or properties, and all the Math object’s properties are read-only values that are written in all capital letters. You precede the method with the object name, Math.

To calculate the square root of 10, for example, you write:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint