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
  • DownloadDownload
  • PrintPrint

Math

The class Range and subclasses DoubleRange, FloatRange, IntRange, LongRange, and NumberRange are used to store inclusive ranges of numbers. These range classes can be interrogated for containment, minimums, and maximums.

The Fraction class allows you to work with fractions accurately. Fractions are stored as you might write them. For example, the code:


  

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