Working with Numbers in Ruby

A key component in building programs is developing mathematical equations in order to implement various algorithms. In this chapter, you'll learn how to work with different number data types in a Ruby program, including the integer and float types. Additionally, you will do the following:

  • Demonstrate how to work with the integer and float data types in Ruby
  • Compute calculations in Ruby with the various number data types