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

Get Comprehensive Ruby Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.