October 2006
Intermediate to advanced
888 pages
16h 55m
English
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.
Read now
Unlock full access