Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 7. Numbers, Math, and Dates > Using Numbers in ActionScript

7.2. Using Numbers in ActionScript

ActionScript 3.0 includes three base types for numbers, which reflect the three ways I covered to represent numbers digitally, allowing the programmer to choose the best number type for the task at hand. The number types include special values to keep your program from breaking in certain edge cases. Additionally, the language allows you to type numbers directly into code.

7.2.1. Number

The Number type is an IEEE 754 double-precision 64-bit floating-point number and, as such, it can represent positive and negative numbers, both whole and fractional. Numbers are applicable for almost any kind of measurement and are one of the principal workhorses of ActionScript 3.0.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint