Chapter 6. Symbols and Ranges


5.30. Conclusion

In this chapter, we have looked at various representations for numbers, including integers (in different bases) and floats. We've seen problems with floating-point math, and how working with rational values can help avoid these problems. We've looked at implicit and explicit numeric conversion and coercion.

We've seen numerous ways to manipulate numbers, vectors, and matrices. We've had a good overview of most of the number-related standard libraries, in particular the mathn library.

Let's move on. In the next chapter, we discuss two very Rubyish data types: symbols and ranges.




The Ruby Way(c) Solutions and Techniques in Ruby Programming
The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition)
ISBN: 0672328844
EAN: 2147483647
Year: 2004
Pages: 269
Authors: Hal Fulton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net